TicTacToe: Simplify superfluous initial command logic.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-09 17:41:02 -08:00 committed by showell
parent 969b984b80
commit 5843801d13

View file

@ -276,11 +276,9 @@ class ticTacToeHandler(object):
''' '''
def handle_message(self, message, bot_handler): def handle_message(self, message, bot_handler):
command_list = message['content'] command = message['content']
command = ""
for val in command_list:
command += val
original_sender = message['sender_email'] original_sender = message['sender_email']
storage = bot_handler.storage storage = bot_handler.storage
if not storage.contains(original_sender): if not storage.contains(original_sender):
storage.put(original_sender, None) storage.put(original_sender, None)