From 40ff4655343bf232137ef72f3f84b74f15caa60b Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 2 Dec 2019 23:20:25 +0100 Subject: Add envelope emoji constant --- bot/constants.py | 1 + 1 file changed, 1 insertion(+) 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>" -- cgit v1.2.3 From 4af0413204d24ff4931118363149920601a137fd Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 2 Dec 2019 23:22:59 +0100 Subject: Add envelope reaction if AoC join DM sends successfully --- bot/seasons/christmas/adventofcode.py | 2 ++ 1 file changed, 2 insertions(+) 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", -- cgit v1.2.3