random of dictionary

This commit is contained in:
bobloy 2018-09-07 10:20:06 -04:00
parent 080d0f97f2
commit 1494e0e023

View File

@ -58,7 +58,7 @@ class RPSLS:
await ctx.maybe_send_embed("Invalid Choice")
return
bot_choice = random.choice(self.weaknesses)
bot_choice = random.choice(list(self.weaknesses.keys()))
bot_emote = self.get_emote(bot_choice)
message = '{} vs. {}, who will win?'.format(player_emote, bot_emote)
em = discord.Embed(description=message, color=discord.Color.blue())