From ee399f1e885b67a0deb988ac15d7ef1e45e7e1b5 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 30 Dec 2024 21:11:17 -0500 Subject: [PATCH] fix: ignore messages from bots --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index e7ddfa6..59558df 100644 --- a/core.py +++ b/core.py @@ -16,7 +16,7 @@ from state import command_locks async def on_message(message): - if not message.content.startswith(constants.PREFIX): + if not message.content.startswith(constants.PREFIX) or message.author.bot: return tokens = commands.tokenize(message.content)