Giter VIP home page Giter VIP logo

hagglit's Introduction

hagglit

This is a Private Discord bot for my friends' server. It has some fun and useful commands related to cover projects that we decide to do. Using Google Sheets to simulate a relational database, this bot can read and write information to our spreadsheet and display messages with Discord Embeds. It also has the functionality to get tweet metrics from Twitter.

Tech Used

  • Python3
  • Discord API discord.py
  • Google Sheets API gspread.py
  • Twitter API tweepy.py

Commands

  • ~greeting: randomly returns a member for a daily greeting
  • ~collection: displays a user's greeting history
  • ~help: shows all the commands and their functions
  • ~add_project: adds a project and stores its information to the database
  • ~projects: lists all the projects
  • ~get_project_analytics: gets tweet metrics for a project that was posted on Twitter
  • ~menpa: returns a 'yes' / 'no' / 'ask again' answer
  • ~slaygend: gives the user a random 'slay' percentage

Summary and Takeaways

  • Used discord.py and Discord Objects to access various information for server members, roles, etc.
  • Implemented Google Sheets as a database โ€” using gspread library to read and write data
  • Extracted information from tweets using tweepy and Twitter API
  • Practiced object-oriented design with Python classes

hagglit's People

Contributors

lsuan avatar

Stargazers

 avatar

Watchers

 avatar Kostas Georgiou 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.