aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2019-12-09 22:05:36 +0100
committerGravatar kwzrd <[email protected]>2019-12-09 22:05:36 +0100
commit8122bf0c06cbd984f28f509525c58340c0a29959 (patch)
tree3abbeec7f4749e5f07ff8c8b52d013b0672bb07b /bot
parentImprove wording of log and response messages (diff)
Respond with a reaction on success
Instead of returning on error we add an else clause to the try-except block and add a reaction on success to reduce needless visual clutter.
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/evergreen/bookmark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py
index d64c0068..0c720e7e 100644
--- a/bot/seasons/evergreen/bookmark.py
+++ b/bot/seasons/evergreen/bookmark.py
@@ -4,7 +4,7 @@ import random
import discord
from discord.ext import commands
-from bot.constants import Colours, ERROR_REPLIES
+from bot.constants import Colours, ERROR_REPLIES, Emojis
log = logging.getLogger(__name__)
@@ -44,8 +44,8 @@ class Bookmark(commands.Cog):
colour=Colours.soft_red
)
await ctx.send(embed=error_embed)
- return
- await ctx.send("Bookmark sent to your DM")
+ else:
+ await ctx.message.add_reaction(Emojis.envelope)
def setup(bot: commands.Bot) -> None: