@bot.command()
async def say(ctx, *arg):
await ctx.message.delete()
author = ctx.message.author
msg = ctx.message.content
if(msg.find("@everyone") == -1) and (msg.find("@here") == -1):
await ctx.send(' '.join(arg))
else: await ctx.send("Нельзя упоминать всех!")
for m in ctx.message.mentions:
print ("user mention %s" % m)
for m in ctx.message.role_mentions:
print ("role mention %s" % m)
if ctx.message.mention_everyone:
print ('everyone mention')
if ctx.message.role_mentions or ctx.message.mention_everyone:
await ctx.send(author.mention+", не пингуй!")
else:
await ctx.send(msg)