summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2016-06-26 23:38:44 +1200
committerFlorian Baumann <derflob@derflob.de>2016-06-26 23:38:44 +1200
commitf6013e80e6f9d2d0d150ef887e282b6c18ecdc60 (patch)
tree754e01fdc483d3e099b7d34d977575c8810ea506
downloaderr-xep-f6013e80e6f9d2d0d150ef887e282b6c18ecdc60.tar.gz
err-xep-f6013e80e6f9d2d0d150ef887e282b6c18ecdc60.tar.bz2
Initial XEPBot
-rw-r--r--XEPBot.plug9
-rw-r--r--XEPBot.py8
2 files changed, 17 insertions, 0 deletions
diff --git a/XEPBot.plug b/XEPBot.plug
new file mode 100644
index 0000000..08bd879
--- /dev/null
+++ b/XEPBot.plug
@@ -0,0 +1,9 @@
+[Core]
+Name = XEPBot
+Module = XEPBot
+
+[Documentation]
+Description = Activates some additional XEP in the XMPP backend
+
+[Python]
+Version = 2+
diff --git a/XEPBot.py b/XEPBot.py
new file mode 100644
index 0000000..12da167
--- /dev/null
+++ b/XEPBot.py
@@ -0,0 +1,8 @@
+import logging
+from errbot import BotPlugin
+
+class XEPBot(BotPlugin):
+ def activate(self):
+ if (self.bot_config.BACKEND == 'XMPP'):
+ # Delivery Receipts
+ self._bot.conn.client.register_plugin('xep_0184')