Quake bot can be added to a Discord guild to display live updates on earthquakes around the world.
Quake bot scrapes data from https://VolcanoDiscovery.com, a website which contains current statistics on earthquakes. A user can request the bot to display these statistics through various text commands. The bot displays the requested information in text messages, providing an easy to digest format for guild members.
Quake Bot’s commands are prefixed with a dollar sign to distinguish them from regular text messages.
- $help - Lists all available commands.
- $earthquake - Allows the user to see the most recent earthquake that occurred in any place of the world at the time requested.
- $dailysummary - Provides a daily summary of all the earthquakes across the globe.
- $strongestquake - Shows the strongest earthquake that occured today.
Although the code can be downloaded locally, we have added the code to replit.com and it can be found here. By doing so, we were able to work collectively to create the bot and can run it on a server, rather than our local machine. To run the bot, all you need is its token which for us is held in the my_secret
variable.
After creating the bot, we moved on to our next challenge as part of the hackathon, to design a mocksite to market our project. This was done by using Figma, and can be viewed here.
Our last challenge was to create the site. At this point in the hackathon, it was close to 1 AM. Our team worked as hard as we could to develop a functional desktop site and by 3 AM we were able to call it a night. The site can be viewed here and a github repository with the code can be seen here.