Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
v1.0.3-Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
222ryan authored May 6, 2022
1 parent 3c70ecf commit d5a02c9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Commands/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,26 @@ async def gtf(self, ctx):
message = await channel.send(embed=embed)
await KumosLab.set.gameMessage(guild=ctx.guild, user=ctx.author, id=message.id)
correct_countries = []
countries = []
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()
countries = []
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)

answers_array = [random_country, random.choice(countries), random.choice(countries),
random.choice(countries)]
answer_1 = random.choice(countries)
countries.remove(answer_1)
answer_2 = random.choice(countries)
countries.remove(answer_2)
answer_3 = random.choice(countries)
countries.remove(answer_3)

answers_array = [random_country, answer_1, answer_2, answer_3]
random.shuffle(answers_array)

# send the image
Expand Down

0 comments on commit d5a02c9

Please sign in to comment.