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

# Display Correct answer and calculate and display scores. # Display Correct answer and calculate and display scores.
index = self.games[channel.id]["correct_answer"] index = self.games[channel.id]["correct_answer"]
embed = discord.Embed( embed = discord.Embed(
colour=discord.Colour(0x1fb600),
colour=EmbedColours.triv_green,
description="Correct answer is {} **{}**".format( description="Correct answer is {} **{}**".format(
self.emojis[index], self.emojis[index],
unescape(question["correct_answer"]) unescape(question["correct_answer"])
final_scores = self.sort_leaderboard(self.games[channel.id]["players"]) final_scores = self.sort_leaderboard(self.games[channel.id]["players"])
winner = self.bot.get_user(list(final_scores.keys())[0]) winner = self.bot.get_user(list(final_scores.keys())[0])
winning_score = list(final_scores.values())[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) await ctx.send(embed=embed)
self.games.pop(channel.id) self.games.pop(channel.id)



+ 2
- 0
Roxbot/load_config.py View File

frog_green = 0x4C943D # Used for FROGTIPS frog_green = 0x4C943D # Used for FROGTIPS
red = 0xe74c3c # Used for on_error red = 0xe74c3c # Used for on_error
dark_red = 0x992d22 # Used for on_command_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 # REMEMBER TO UNCOMMENT THE GSS LINE, ROXIE

Loading…
Cancel
Save