pocc / bga_discord

Discord bot to create games on Board Game Arena
Apache License 2.0
11 stars 5 forks source link

Fix `coroutine 'Messageable.send' was never awaited` #26

Closed mavit closed 3 years ago

mavit commented 3 years ago

If you direct message the bot hello twice consecutively, the following error is triggered:

/home/mavit/src/bga_discord/src/menu_root.py:74: RuntimeWarning: coroutine 'Messageable.send' was never awaited
  message.channel.send("Enter a number between 1 and 3 (see embed above)")
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

This commit fixes that, addressing #25.

pocc commented 3 years ago

Good catch!