fix: ignore messages from bots

This commit is contained in:
Ryan 2024-12-30 21:11:17 -05:00
parent 04ef3d1c83
commit ee399f1e88
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -16,7 +16,7 @@ from state import command_locks
async def on_message(message): async def on_message(message):
if not message.content.startswith(constants.PREFIX): if not message.content.startswith(constants.PREFIX) or message.author.bot:
return return
tokens = commands.tokenize(message.content) tokens = commands.tokenize(message.content)