diff options
author | 2019-12-02 22:14:50 -0500 | |
---|---|---|
committer | 2019-12-02 22:14:50 -0500 | |
commit | 3ae56c2688ef56069a06b8fe7129f6e126f9b25a (patch) | |
tree | 8f2600984e335bf9bcd133f1d56b3baa6e137b4d | |
parent | Cancel season related tasks on cog unload (#320) (diff) | |
parent | Add envelope reaction if AoC join DM sends successfully (diff) |
Add envelope reaction on successful AoC join DM dispatch (#324)
Add envelope reaction on successful AoC join DM dispatch
-rw-r--r-- | bot/constants.py | 1 | ||||
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index bea595d6..c09d8369 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -81,6 +81,7 @@ class Emojis: star = "\u2B50" christmas_tree = "\U0001F384" check = "\u2611" + envelope = "\U0001F4E8" terning1 = "<:terning1:431249668983488527>" terning2 = "<:terning2:462339216987127808>" diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index fe2fa956..b59c4eba 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -204,6 +204,8 @@ class AdventOfCode(commands.Cog): except discord.errors.Forbidden: log.debug(f"{author.name} ({author.id}) has disabled DMs from server members") await ctx.send(f":x: {author.mention}, please (temporarily) enable DMs to receive the join code") + else: + await ctx.message.add_reaction(Emojis.envelope) @adventofcode_group.command( name="leaderboard", |