forked from test/mau_mau_bot
use set instead of list for notify_me command
This commit is contained in:
parent
b0ca73a3c9
commit
ba81ab614a
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -63,9 +63,9 @@ def notify_me(bot, update):
|
|||
"when a new game is started there."))
|
||||
else:
|
||||
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:
|
||||
gm.remind_dict[chat_id] = [update.message.from_user.id]
|
||||
gm.remind_dict[chat_id] = {update.message.from_user.id}
|
||||
|
||||
|
||||
@user_locale
|
||||
|
|
Loading…
Reference in a new issue