fix: ignore messages from bots
This commit is contained in:
2
core.py
2
core.py
@@ -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)
|
||||||
|
Reference in New Issue
Block a user