Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

async _can_execute_command is not awaited #269

Closed Latent-Logic closed 1 year ago

Latent-Logic commented 1 year ago

I got this error when running:

.venv/lib/python3.11/site-packages/twitchAPI/chat/__init__.py:1084: RuntimeWarning: coroutine 'Chat._handle_msg.<locals>._can_execute_command' was never awaited
  if _can_execute_command(command, command_name):
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

And I believe it is from a missing await here: https://github.com/Teekeks/pyTwitchAPI/blob/31fdda6816c99adfc3115b58c281530e49e5728f/twitchAPI/chat/__init__.py#L1084