Geography Games Bot banner

Geography Games Bot

8 devlogs
10h 20m 26s

A discord bot with geography games like Geoguessr, flag/anthem quizzes, and more

Sam V

Added a third quiz mode for capital cities. Adding capital cities for every country took a while as I manually went through each one to ensure their accuracy. I also spent some of the time writing versions using only English letters for capitals that have other characters in their name (e.g. Yaoundé -> Yaounde, St. George’s -> St Georges) for use in a Hangman game later, and I excluded capitals which were too obvious (e.g. Mexico City) from the capitals quiz. In addition to the mode shown in the image there is also a “reverse” option for the command which gives you a random capital city and you have to identify the country that it is the capital of.

Attachment
0
Sam V

Implemented the national anthems quiz. This should have been easy except apparently Discord doesn’t support audio files inside Components V2. Because of that I had to create video files for all of the audio files I was going to use using ffmpeg, which took me a while to work out how to do and how to get down the file size. I think the final result turned out well though. Once I had the videos created it was pretty easy to use the modular quiz code I had made earlier to add them into the bot.

Attachment
0
Sam V

I added a check to stop people from starting multiple games in one channel at the same time, as well as adding a play again button. Also every country is now in the game finally.

Attachment
1

Comments

ddededodediamante
ddededodediamante 3 months ago

tasty

Sam V

I improved the appearance of the flag quiz, notably adding a countdown for how much time is left to answer.

Attachment
0
Sam V

You can now click a button to select your guess, and after 15 seconds the results will be shown and you can see what everyone guessed.

Attachment
0
Sam V

The flag quiz command now shows a fancy message with a flag and buttons for randomly selected countries. I used the new(ish) Components V2 features for the first time to make it look nice. Currently not every country is in the game because I couldn’t be bothered to type them all out right now but the code is there to easily add them in later.

Attachment
1

Comments

yefoi
yefoi 3 months ago

oh! oh! i know this one! 😼

Sam V

I spent a while working out how to implement subcommands in discordjs but I think I have it working now. Once I had it worked out I created two subcommands under quiz for guessing national anthems and flags.

Attachment
3

Comments

yefoi
yefoi 3 months ago

nice! can’t wait for this in rws, can we get a country shape option too? thatd be awesome

Mov
Mov 3 months ago

Collab with weatherbot to guess the country that is experiencing a certain weather (it’s like femboy where you get more hints as it goes on (this is a terrible idea))

Sam V
Sam V 3 months ago

Adding a country shape option could be a good idea

Sam V

Set up the basic bot files and registered a basic testing command. I plan on implementing multiple games through slash commands such as a GeoGuessr-style game and some quizzes on things like flags and national anthems.

Attachment
2

Comments

Gentle
Gentle 3 months ago

Geoguessr in Discord sounds like a cool idea!

Sam V
Sam V 3 months ago

Thank you!