PennyDreadfulMTG / Penny-Dreadful-Tools

A suite of tools for the Penny Dreadful MTGO community
https://pennydreadfulmagic.com
MIT License
40 stars 28 forks source link

Bot error on_reaction_add #5507

Closed bakert closed 5 years ago

bakert commented 6 years ago
(, <Member id=177643422268653568 name='6000j' discriminator='7345' bot=False nick='6000j (gold02 on mtgo)' guild=>)
{}

Reported on discordbot by discord user--------------------------------------------------------------------------------
IndexError
list index out of range
Stack Trace:

  File "run.py", line 95, in <module>
    run()
  File "run.py", line 16, in run
    bot.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 201, in init
    client.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 32, in init
    self.run(configuration.get('token'))
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 563, in run
    loop.run_forever()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 422, in run_forever
    self._run_once()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 1432, in _run_once
    handle._run()
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 221, in _run_event
    await coro(*args, **kwargs)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 111, in on_reaction_add
    card = re.findall(r':[^:]*?: ([^:]*) ', suggestions + ' ')[command.DISAMBIGUATION_NUMBERS_BY_EMOJI[reaction.emoji]-1]
bakert commented 6 years ago

We don't seem to log the actual command here? That would be kinda handy …

bakert commented 5 years ago

We include the message content as of 9a7391d so closing this and waiting for it to reoccur with more info.

bakert commented 5 years ago
Bot error on_reaction_add

(, <Member id=496412816777936907 name='carmandor' discriminator='5253' bot=False nick=None guild=>)
{}
[]

Labels: discordbot; NotFound