Coder Social home page Coder Social logo

azizul-c / discord-earthquake-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maazmakrod/discord-earthquake-bot

0.0 0.0 0.0 19 KB

A Discord bot that scrapes the web for current earthquake data and brings it to Discord servers. Created for Waterloo Engineering's EngHack 2021.

Python 100.00%
discord webscraping

discord-earthquake-bot's Introduction

Quake Bot, a Discord Earthquake Bot

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.

Commands

  • $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.

How it Works

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.

Demo

image image image image

Designing a Marketing Site

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.

Creating the Site

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.

discord-earthquake-bot's People

Contributors

maazmakrod avatar ahmadcookie8 avatar azizul-c avatar saadmukhtar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.