Compare commits

..

1 commit

Author SHA1 Message Date
xenofem 2d08476c11 delete spoilered posts on react by original poster 2021-03-23 22:45:28 -04:00

View file

@ -50,9 +50,9 @@ async def on_message(message):
@client.event @client.event
async def on_reaction_add(reaction, user): async def on_reaction_add(reaction, user):
if (reaction.message.author == client.user if reaction.message.author == client.user
and str(reaction.emoji) == '' and str(reaction.emoji) == ''
and reaction.message.content.startswith('{0} says: '.format(user.mention))): and reaction.message.content.startswith('{0} says: '.format(user.mention)):
try: try:
await reaction.message.delete() await reaction.message.delete()
except discord.DiscordException as e: except discord.DiscordException as e: