From 1494e0e023fb44249687485159286f250f10cad3 Mon Sep 17 00:00:00 2001 From: bobloy Date: Fri, 7 Sep 2018 10:20:06 -0400 Subject: [PATCH] random of dictionary --- rpsls/rpsls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpsls/rpsls.py b/rpsls/rpsls.py index 7257dc2..7799db5 100644 --- a/rpsls/rpsls.py +++ b/rpsls/rpsls.py @@ -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())