fixed the looping

This commit is contained in:
Sakimori 2020-12-22 15:02:28 -05:00
parent fb566d3979
commit f9e41031ad

View File

@ -31,6 +31,11 @@ async def on_ready():
@client.event @client.event
async def on_message(msg): async def on_message(msg):
if msg.author == client.user:
return
command_b = False command_b = False
for prefix in config()["prefix"]: for prefix in config()["prefix"]:
if msg.content.startswith(prefix): if msg.content.startswith(prefix):