Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reacting with 🎟️ if already in audience list throws silent error #13

Open
kepler471 opened this issue Jul 7, 2020 · 0 comments
Open
Assignees

Comments

@kepler471
Copy link
Collaborator

It seems that if a user uses the 🎟️ reaction on a bot message after they have already been added to the list, there is no response in the channel, but this error occurs:

 Ignoring exception in on_reaction_add
Traceback (most recent call last):
  File "/home/steli/.pyenv/versions/film-bot/lib/python3.6/site-packages/discord/client.py", line 312, in _run_event
    await coro(*args, **kwargs)
  File "/home/steli/source/film_night_discord_bot/your_bot.py", line 111, in on_reaction_add
    await common_reaction_handler(reaction, user)
  File "/home/steli/source/film_night_discord_bot/your_bot.py", line 97, in common_reaction_handler
    await handlers.handle_reaction(reaction, user, client)
  File "/home/steli/source/film_night_discord_bot/handlers.py", line 34, in handle_reaction
    cmd_obj = COMMAND_HANDLERS[mapping[str(reaction.emoji)]]
KeyError: '🎟️'
Temporary user set as  Wattsit#0001
Temporary user set as  None
Temporary user set as  Wattsit#0001
reaction call Wattsit
reaction call Direct Message with Wattsit#0001
Temporary user set as  None

We want the bot to message the channel that the user alreay has a ticket, which was previously working.

@kepler471 kepler471 self-assigned this Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant