--- a/rollbot.py Wed Apr 04 00:32:01 2018 +0800
+++ b/rollbot.py Wed Apr 04 16:31:34 2018 +0800
rbody, rxbody = self.respond(mbody)
+ msg['html']['body'] = rxbody
def muc_message(self, msg):
rbody = '%s: %s' % (msg['mucnick'], rbody)
rxbody = '%s: %s' % (cgi.escape(msg['mucnick']), rxbody)
+ msg['html']['body'] = rxbody
def muc_invite(self, invite):
rollbot.auto_subscribe = True
rollbot.register_plugin('xep_0030') # Service Discovery
rollbot.register_plugin('xep_0045') # Multi-User Chat
+ rollbot.register_plugin('xep_0071') # XHTML-IM
rollbot.register_plugin('xep_0092') # Software Version
rollbot.register_plugin('xep_0115') # Entity Capabilities
rollbot.register_plugin('xep_0199') # XMPP Ping