dont react on messages from bots
This commit is contained in:
8
main.py
8
main.py
@@ -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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user