From 5eb72f038172cea6f45bd5cf192e4e6e46d93be3 Mon Sep 17 00:00:00 2001 From: Kumo's Lab <63556081+KumosLab@users.noreply.github.com> Date: Fri, 6 May 2022 21:05:03 +0100 Subject: [PATCH] v1.0.4-Beta --- Commands/play.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Commands/play.py b/Commands/play.py index 9bdf612..a9e38d5 100644 --- a/Commands/play.py +++ b/Commands/play.py @@ -102,17 +102,16 @@ async def gtf(self, ctx): await KumosLab.set.gameMessage(guild=ctx.guild, user=ctx.author, id=message.id) correct_countries = [] countries = [] + random_country = await KumosLab.data.alldata() + for i in random_country: + countries.append(i[0]) while round != 10: message = await KumosLab.get.gameMessage(guild=ctx.guild, user=ctx.author) message = await ctx.fetch_message(message) - random_country = await KumosLab.data.alldata() - for i in random_country: - countries.append(i[0]) random_country = random.choice(countries) countries.remove(random_country) - # get a random image from the images folder image = await KumosLab.data.flagdata(country=random_country) - + countries = countries answer_1 = random.choice(countries) countries.remove(answer_1) answer_2 = random.choice(countries)