|
@ -55,7 +55,7 @@ class MUCBot(slixmpp.ClientXMPP): |
|
|
|
|
|
|
|
|
def muc_message(self, msg): |
|
|
def muc_message(self, msg): |
|
|
# Some inspection commands |
|
|
# Some inspection commands |
|
|
print('Message: {}'.format(msg)) |
|
|
#print('Message: {}'.format(msg)) |
|
|
|
|
|
|
|
|
# Always check that a message is not the bot itself, otherwise you will create an infinite loop responding to your own messages. |
|
|
# Always check that a message is not the bot itself, otherwise you will create an infinite loop responding to your own messages. |
|
|
if msg['mucnick'] != self.nick: |
|
|
if msg['mucnick'] != self.nick: |
|
|