add X react to our messages as a cue for users who don't know how to delete it
This commit is contained in:
parent
482d26cbd4
commit
12051f99a7
6
bot.py
6
bot.py
|
@ -51,7 +51,11 @@ async def on_message(message):
|
||||||
print('error reading attachments: {0}'.format(e), file=sys.stderr)
|
print('error reading attachments: {0}'.format(e), file=sys.stderr)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await message.channel.send("{0} says: {1}".format(message.author.mention, message.content), files=attachments)
|
spoilered_message = await message.channel.send("{0} says: {1}".format(message.author.mention, message.content), files=attachments)
|
||||||
|
try:
|
||||||
|
await spoilered_message.add_reaction('❌')
|
||||||
|
except discord.DiscordException as e:
|
||||||
|
print('error reacting to message: {0}'.format(e))
|
||||||
except discord.DiscordException as e:
|
except discord.DiscordException as e:
|
||||||
print('error sending message: {0}'.format(e), file=sys.stderr)
|
print('error sending message: {0}'.format(e), file=sys.stderr)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue