Implement a pop culture theme

This commit is contained in:
TropiiDev 2025-01-30 19:51:56 -05:00
parent cd38e526e5
commit ab7b1a74ac
2 changed files with 58 additions and 2 deletions

View File

@ -20,6 +20,8 @@ class Select(discord.ui.Select):
self.theme = "History" self.theme = "History"
elif self.values[0] == "Geography": elif self.values[0] == "Geography":
self.theme = "Geography" self.theme = "Geography"
elif self.values[0] == "Pop Culture":
self.theme = "Pop Culture"
questions = load_questions(self.theme) questions = load_questions(self.theme)
for i in range(len(questions)): for i in range(len(questions)):

View File

@ -40,6 +40,24 @@ def load_questions(theme):
"What is the smallest US state?", "What is the smallest US state?",
"What is the most populated city in the world?" "What is the most populated city in the world?"
] ]
elif theme == "Pop Culture":
questions = [
"Which video game is the most downloaded in the world?",
"What movie is this line from: 'Say hello to my little friend'?",
"Who is the most followed person on Instagram?",
"What is the most watched trailer of all time?",
"Which video game is the highest earning?",
"Who is the shortest NBA player?",
"Who is the most subscribed to Twitch streamer?",
"Which person has the lowest IQ in the world?",
"Who is the richest person in the world?",
"What movie has the most Oscar nominations?",
"What is the most disliked video on YouTube?",
"What year did Hearts of Iron 4 release?",
"What is the lowest rated game ever (According to IMDb)?",
"Which music artist has the most albums?",
"Who is top global artist of 2024?"
]
return questions return questions
@ -81,6 +99,24 @@ def load_answers(question, theme):
"13 Rhode Island", "13 Rhode Island",
"14 Tokyo" "14 Tokyo"
] ]
elif theme == "Pop Culture":
answers = [
"0 Subway Surfers",
"1 Scarface",
"2 Cristiano Ronaldo",
"3 Deadpool and Wolverine",
"4 Space Invaders",
"5 Muggsy Bogues",
"6 Kai Cenat",
"7 William James Sidis",
"8 Elon Musk",
"9 Eve,La La Land,Titanic",
"10 YouTube Rewind 2018: Everyone Controls Rewind",
"11 2016",
"12 CrazyBus",
"13 Billy Childish",
"14 Taylor Swift"
]
answer = answers[question] answer = answers[question]
if ',' in answer: if ',' in answer:
@ -128,6 +164,24 @@ def load_choices(question, theme):
"13 Texas,Connecticut,New Jersey", "13 Texas,Connecticut,New Jersey",
"14 Mexico City,New York,Beijing" "14 Mexico City,New York,Beijing"
] ]
elif theme == "Pop Culture":
choices = [
"0 Fortnite,PUBG,Candy Crush",
"1 The Godfather,Pulp Fiction,Fight Club",
"2 Lionel Messi,Neymar,LeBron James",
"3 Star Wars,Avatar,Lord of the Rings",
"4 Grand Theft Auto V,FIFA,League of Legends",
"5 Michael Jordan,LeBron James,Kobe Bryant",
"6 Ninja,Ironmouse,Ludwig,Jynxzi",
"7 Albert Einstein,You,Thomas Edison",
"8 Jeff Bezos,Warren Buffet,Bill Gates",
"9 Avatar,Lord of the Rings,Star Wars",
"10 Baby Shark,Gangnam Style,Baby",
"11 2020,2017,2018",
"12 Angry Birds,Farmville,Roblox",
"13 Lady Gaga,Adele,Rihanna",
"14 Billie Eilish,Ariana Grande,Kendrick Lamar"
]
choice = choices[question] choice = choices[question]
only_choice = choice.split(f"{str(question)} ")[1] only_choice = choice.split(f"{str(question)} ")[1]