diff --git a/streambot.py b/streambot.py index 7902052..9f10c37 100644 --- a/streambot.py +++ b/streambot.py @@ -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("-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("-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() class ArchivistBot(ClientXMPP): @@ -67,7 +67,7 @@ class ArchivistBot(ClientXMPP): return 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']) targetDir = self.datadir