Download:
child 2:11e99d62ba12
parent 0:ce9855302692
1:e7b3233bb582
Anton Shestakov <av6@dwimlabs.net>, Mon, 09 May 2016 21:24:39 +0800
rollbot: be nice and auto authorize contacts, then subscribe back to them

1 файлов изменено, 2 вставок(+), 0 удалений(-) [+]
rollbot.py file | annotate | diff | comparison | revisions
--- a/rollbot.py Mon May 09 21:21:58 2016 +0800
+++ b/rollbot.py Mon May 09 21:24:39 2016 +0800
@@ -36,6 +36,8 @@
logging.basicConfig(level=args.loglevel, format='%(asctime)s %(levelname)-8s %(message)s')
rollbot = RollBot(args.jid, args.password)
+ rollbot.auto_authorize = True
+ rollbot.auto_subscribe = True
rollbot.register_plugin('xep_0030') # Service Discovery
rollbot.register_plugin('xep_0092') # Software Version
rollbot.register_plugin('xep_0199') # XMPP Ping