Activity

Sam V

This first version of the website can show all the Minecraft statistics from the “General” page in-game (minecraft:custom internally), and there is a list on the home page with a search bar to find the specific statistic you want to view. I have the demo reading statistics directly from a real Minecraft server so it will update every 30 seconds when statistics change in-game.

Attachment
Attachment
0
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

I switched my code from making HTTP requests to the APNIC website for WHOIS queries to using the whoiser library, as it seems like this will work better for queries to ARIN IPs.

Attachment
0
Sam V

Now the location gets formatted nicely instead of just showing country and region codes! I think this is the final data format I will use so I am going to try and move on to supporting registries other than APNIC. I want to support ARIN next but it seems like it may be tricky.

Attachment
0
Sam V

I added the functionality to download the CSV file and filter through the rows to find the one which contains the location data for the provided IP address. Currently, the code only provides the exact data from the CSV file, which contains the ISO 3166 codes for the country and region as well as the name of the city.

Attachment
0
Sam V

I started working on fetching location data from IP addresses in the APNIC (Asia Pacific) registry. Currently you can look an IP up and it will find the internet provider, as well as providing the URL for the geofeed.csv file which contains the locations for all IP ranges from that provider.

(Don’t worry the IP i’m using in the screenshot is from a VPN)

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!