aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-30 18:42:41 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-11-30 18:42:41 +0100
commitd664c68ecd81b2e25fd09c6de69ecafdc13a0b95 (patch)
treeb947daca01fd6632d0a0e0b11f03ff5dec0ce779
parentAdd note about refresh time to info embed (diff)
Clarify text of DM with Advent of Code join code
-rw-r--r--bot/exts/christmas/advent_of_code/_cog.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/bot/exts/christmas/advent_of_code/_cog.py b/bot/exts/christmas/advent_of_code/_cog.py
index 646671c7..2a1a776b 100644
--- a/bot/exts/christmas/advent_of_code/_cog.py
+++ b/bot/exts/christmas/advent_of_code/_cog.py
@@ -233,12 +233,14 @@ class AdventOfCode(commands.Cog):
await ctx.send(embed=error_embed)
return
- info_str = (
- "Head over to https://adventofcode.com/leaderboard/private "
- f"with code `{join_code}` to join the Python Discord leaderboard!"
- )
+ info_str = [
+ "To join our leaderboard, follow these steps:",
+ "• Log in on https://adventofcode.com",
+ "• Head over to https://adventofcode.com/leaderboard/private",
+ f"• Use this code `{join_code}` to join the Python Discord leaderboard!",
+ ]
try:
- await author.send(info_str)
+ await author.send("\n".join(info_str))
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")