gif_word = ['.gif']
tenor_com = ['tenor.com']
@bot.event
async def on_message(msg):
for word3 in tenor_com:
if word3 in msg.content:
return
else:
for word in likns_words:
if word in msg.content:
if msg.author == bot.user:
pass
else:
for word2 in gif_word:
if word2 in msg.content:
pass
else:
await msg.delete()
print(discord.author.name, 'using likns_words')
await discord.author.name.add_roles(config.MutedRole)
await bot.process_commands(msg)
主页
/
user-500928