feat: add ability to exclusive command on channel

This commit is contained in:
2021-07-30 17:24:21 -04:00
parent db1bb161d6
commit bfc675df79
3 changed files with 4 additions and 7 deletions

View File

@@ -115,8 +115,6 @@ class Fun(commands.Cog):
# get poll from cache
poll = Poll.create_from(json.loads(polls[event.message_id]))
print(event)
# check reaction emoji type
if event.event_type == "REACTION_ADD":
poll.add_vote(event.user_id, event.emoji.name)