aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-07-22 13:43:32 -0400
committerGravatar sco1 <[email protected]>2019-07-22 13:43:32 -0400
commit2794a852294f66f3e232a9baad100468407c32e5 (patch)
tree0db82c58ef7b2712548c69183751833d560d1c75
parentApply suggestions from code review (diff)
Rename variables for clarity, fix extraneous whitespace from review
-rw-r--r--bot/seasons/easter/easter_riddle.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index 09d11073..2d4d1265 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -30,7 +30,7 @@ class EasterRiddle(commands.Cog):
async def riddle(self, ctx):
"""
Gives a random riddle, then provides 2 hints at certain intervals before revealing the answer.
-
+
The duration of the hint interval can be configured by changing the TIMELIMIT constant in this file.
"""
if not self.current_channel:
@@ -43,25 +43,25 @@ class EasterRiddle(commands.Cog):
description = f"You have {TIMELIMIT} seconds before the first hint.\n\n"
- q_embed = discord.Embed(title=question, description=description, colour=Colours.pink)
+ riddle_embed = discord.Embed(title=question, description=description, colour=Colours.pink)
- await ctx.send(embed=q_embed)
+ await ctx.send(embed=riddle_embed)
await asyncio.sleep(TIMELIMIT)
- h_embed = discord.Embed(
+ hint_embed = discord.Embed(
title=f"Here's a hint: {hints[0]}!",
colour=Colours.pink
)
- await ctx.send(embed=h_embed)
+ await ctx.send(embed=hint_embed)
await asyncio.sleep(TIMELIMIT)
- h_embed = discord.Embed(
+ hint_embed = discord.Embed(
title=f"Here's a hint: {hints[1]}!",
colour=Colours.pink
)
- await ctx.send(embed=h_embed)
+ await ctx.send(embed=hint_embed)
await asyncio.sleep(TIMELIMIT)
if self.winners:
@@ -71,12 +71,12 @@ class EasterRiddle(commands.Cog):
else:
content = "Nobody got it right..."
- a_embed = discord.Embed(
+ answer_embed = discord.Embed(
title=f"The answer is: {self.correct}!",
colour=Colours.pink
)
- await ctx.send(content, embed=a_embed)
+ await ctx.send(content, embed=answer_embed)
self.current_channel = None
else: