fix: ignore messages from bots
This commit is contained in:
parent
04ef3d1c83
commit
ee399f1e88
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user