Answer the question
In order to leave comments, you need to log in
How to prevent a bot from pinging people with @everyone?
I need that when a person writes the say command, the bot could not ping everyone
For example:
Human: !say @everyone hello
Bot: @everyone hello(pings everyone)
How can I remove the ability to ping everyone by the bot?
@bot.command()
async def say(ctx, *arg):
await ctx.message.delete()
author = ctx.message.author
msg = ctx.message.content
print(author, msg)
await ctx.send(' '.join(arg))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question