summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorseth <[email protected]>2022-12-25 20:46:45 -0500
committerseth <[email protected]>2022-12-25 20:47:23 -0500
commitab804806ece49d36e0146cf549103d798bcea42f (patch)
treebc73be50fb96606aa3999cdf5e7a8a182a1c5893 /src
parent02271b829b0b428ad330edc0104fe808bec4a590 (diff)
fix: dispatch commands after on_message event
Diffstat (limited to 'src')
-rw-r--r--src/moyaiBot/moyaiBot.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/moyaiBot/moyaiBot.py b/src/moyaiBot/moyaiBot.py
index 216fe73..f09700a 100644
--- a/src/moyaiBot/moyaiBot.py
+++ b/src/moyaiBot/moyaiBot.py
@@ -24,7 +24,9 @@ async def on_message(message):
index = echo_messages.index(message.content.lower())
await message.channel.send(echo_messages[index])
except ValueError:
- return
+ pass
+
+ await moyai.process_commands(message)
@moyai.command()