Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
@bot.event
async def on_message(message):
if "привет" in str(message).lower():
await message.channel.send("Привет, друг")
@bot.event
async def on_message(message):
if "привет" in str(message.content).lower():
await message.channel.send("Привет, друг")
This should be message.content
the code
@bot.event
async def on_message(message):
if "привет" in str(message.content).lower():
await message.channel.send("Привет, друг")
.lover()
and everything will work well .lover()
@bot.event
async def on_message(message):
if "привет" in str(message.content):
await message.channel.send("Привет, друг")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question