zulip_bots: Rename state_handler to storage.

This commit is contained in:
derAnfaenger 2017-10-23 12:24:41 +02:00
parent eb6982e670
commit e331426c64
7 changed files with 21 additions and 21 deletions

View file

@ -281,7 +281,7 @@ class ticTacToeHandler(object):
command += val
original_sender = message['sender_email']
with bot_handler.state_handler.state({}) as mydict:
with bot_handler.storage.state({}) as mydict:
user_game = mydict.get(original_sender)
if (not user_game) and command == "new":
user_game = TicTacToeGame(copy.deepcopy(initial_board))