Answer the question
In order to leave comments, you need to log in
Can you check what is wrong here and why it does not work?
Check the code, it executes the first if and writes to the PM, but the 2 if does not work, it does not issue a role, and does not respond to this command at all.
@bot.event
async def on_message(m):
if m.content == "Привет":
await m.author.send("Как дела?")
if m.guild is None and not m.author.bot:
if m.content == "Хорошо":
member = m.author
role = discord.utils.get(member.guild.roles, id=908718776525135922)
await member.add_roles(role)
Answer the question
In order to leave comments, you need to log in
does not respond to this command at all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question