Browse Source

some sneaky colours tried to get away from me but I assimilated them into the enumarator collective.

tags/v1.7.0
Roxie Gibson 6 years ago
parent
commit
71e5b619f5
2 changed files with 4 additions and 2 deletions
  1. +2
    -2
      Roxbot/cogs/trivia.py
  2. +2
    -0
      Roxbot/load_config.py

+ 2
- 2
Roxbot/cogs/trivia.py View File

@@ -162,7 +162,7 @@ class Trivia:
# Display Correct answer and calculate and display scores.
index = self.games[channel.id]["correct_answer"]
embed = discord.Embed(
colour=discord.Colour(0x1fb600),
colour=EmbedColours.triv_green,
description="Correct answer is {} **{}**".format(
self.emojis[index],
unescape(question["correct_answer"])
@@ -289,7 +289,7 @@ class Trivia:
final_scores = self.sort_leaderboard(self.games[channel.id]["players"])
winner = self.bot.get_user(list(final_scores.keys())[0])
winning_score = list(final_scores.values())[0]
embed = discord.Embed(description="{} won with a score of {}".format(winner.mention, winning_score), colour=0xd4af3a)
embed = discord.Embed(description="{} won with a score of {}".format(winner.mention, winning_score), colour=EmbedColours.gold)
await ctx.send(embed=embed)
self.games.pop(channel.id)


+ 2
- 0
Roxbot/load_config.py View File

@@ -18,6 +18,8 @@ class EmbedColours(Enum):
frog_green = 0x4C943D # Used for FROGTIPS
red = 0xe74c3c # Used for on_error
dark_red = 0x992d22 # Used for on_command_error
triv_green = 0x1fb600 # Used for the correct answer in trivia
gold = 0xd4af3a # Used for displaying the winner in trivia


# REMEMBER TO UNCOMMENT THE GSS LINE, ROXIE

Loading…
Cancel
Save