use set instead of list for notify_me command

This commit is contained in:
Jannes Höke 2016-07-05 00:38:02 +02:00
parent b0ca73a3c9
commit ba81ab614a

4
bot.py
View file

@ -63,9 +63,9 @@ def notify_me(bot, update):
"when a new game is started there.")) "when a new game is started there."))
else: else:
try: try:
gm.remind_dict[chat_id].append(update.message.from_user.id) gm.remind_dict[chat_id].add(update.message.from_user.id)
except KeyError: except KeyError:
gm.remind_dict[chat_id] = [update.message.from_user.id] gm.remind_dict[chat_id] = {update.message.from_user.id}
@user_locale @user_locale