A discord bot with geography games like Geoguessr, flag/anthem quizzes, and more
A discord bot with geography games like Geoguessr, flag/anthem quizzes, and more
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.
Log in to leave a comment
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.
Log in to leave a comment
I improved the appearance of the flag quiz, notably adding a countdown for how much time is left to answer.
Log in to leave a comment
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.
Log in to leave a comment
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.
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.
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.