From ba81ab614a7df3254c4411e431179eb0d9bf118c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 5 Jul 2016 00:38:02 +0200 Subject: [PATCH] use set instead of list for notify_me command --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 0cc3219..6e68886 100644 --- a/bot.py +++ b/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