Updating AnswerBot example for Python3.

parent 8a8b34e7
......@@ -167,7 +167,7 @@ class AnswerBot(sleekxmpp.ClientXMPP):
"""
valid_commands = '<br/>'
for (command, (response, help_text)) in self.commands.iteritems():
for (command, (response, help_text)) in self.commands.items():
valid_commands += '{} - {}<br/>'.format(command, help_text)
if self.transfer_queue:
......@@ -185,7 +185,7 @@ class AnswerBot(sleekxmpp.ClientXMPP):
"""
user_request = msg['body'].lower()
for (command, (response, _)) in self.commands.iteritems():
for (command, (response, _)) in self.commands.items():
if command in user_request:
return response
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment