Trying an on_message function that gets disabled after the bot is fully loaded

This commit is contained in:
Logan Cusano
2022-02-18 22:51:51 -05:00
parent 57225413fc
commit eaaeee7109

1
bot.py
View File

@@ -236,6 +236,7 @@ class Bot(commands.Bot):
@self.event
async def on_message(message):
print(message.content)
if "ping" in message.content:
await self.process_commands(message)