dont react on messages from bots

This commit is contained in:
2021-11-20 19:56:15 +01:00
parent 77767a9fb4
commit 46c168391b

View File

@@ -36,9 +36,6 @@ async def on_ready():
@client.event @client.event
async def on_message(message): async def on_message(message):
#if message.author == client.user:
# return
if message.author.bot: if message.author.bot:
return return
@@ -48,9 +45,6 @@ async def on_message(message):
if message.content.startswith(BOTDATA['prefix'] + 'hello'): if message.content.startswith(BOTDATA['prefix'] + 'hello'):
await message.channel.send("Hello, {}!".format(message.author)) await message.channel.send("Hello, {}!".format(message.author))
if 'happy birthday' in message.content.lower():
await message.channel.send('Happy Birthday! 🎈🎉')
#keep_alive() #keep_alive()
client.run(BOTDATA['token']) client.run(BOTDATA['token'])