|
@ -14,7 +14,7 @@ parser.add_argument("-j", "--jid", help="jabber identifier", type=str, required= |
|
|
parser.add_argument("-p", "--password", help="password", type=str, required=True) |
|
|
parser.add_argument("-p", "--password", help="password", type=str, required=True) |
|
|
parser.add_argument("-m", "--muc", help="destination muc", type=str, required=True) |
|
|
parser.add_argument("-m", "--muc", help="destination muc", type=str, required=True) |
|
|
parser.add_argument("-n", "--nick", help="nickname of the bot", default="archivist", type=str) |
|
|
parser.add_argument("-n", "--nick", help="nickname of the bot", default="archivist", type=str) |
|
|
parser.add_argument("-o", "--output", help="output folder", default="files", type=str) |
|
|
parser.add_argument("-o", "--output", help="output folder", default="files/", type=str) |
|
|
args = parser.parse_args() |
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
class ArchivistBot(ClientXMPP): |
|
|
class ArchivistBot(ClientXMPP): |
|
@ -67,7 +67,7 @@ class ArchivistBot(ClientXMPP): |
|
|
return |
|
|
return |
|
|
|
|
|
|
|
|
if msg['oob']['url']: |
|
|
if msg['oob']['url']: |
|
|
logging.getLogger().debug("received OOB from %s with %s" % (nick, msg['oob']['url'])) |
|
|
logging.getLogger().debug("received OOB from %s with %s" % (self.nick, msg['oob']['url'])) |
|
|
|
|
|
|
|
|
filename = os.path.basename(msg['oob']['url']) |
|
|
filename = os.path.basename(msg['oob']['url']) |
|
|
targetDir = self.datadir |
|
|
targetDir = self.datadir |
|
|