Git Product home page Git Product logo

snowcodes2022's Introduction

snowcodes2022

This is my Discord Bot submission for Snowcodes 2022.

jej-mas is a general purpose bot, features a variety of fun and interactive commands to keep you and your friends hopefully entertained while maintaining the Xmas holiday spirit!

List of Commands

image

List of APIs used:

  1. TheCatAPI
  2. HTTPCat
  3. The Bored API
  4. Jikan API (4.0.0)
  5. MyAnimeList API (beta ver)
  6. Inspiro Bot API
  7. AdviceSlip API
  8. Giphy API

Requirements

Python 3.8 or higher is required.

Install Python on https://www.python.org/.

Get all the needed modules from requirements.txt

# Linux/macOS/Windows
$ pip install -r requirements.txt

1. Your bot's discord token

If you're having trouble finding it, or don't know how to. Follow this tutorial.

2. Giphy API Key

Can be obtained from https://developers.giphy.com/

3. MyAnimeList API Key

Can be obtained from https://myanimelist.net/apiconfig

Bot Setup

$ git clone https://github.com/jej-v/snowcodes2022
$ cd snowcodes2022

Add your Bot Token and Giphy Api Token to the config.py file.

token = 'bot_token_here'
mal_api_key = 'mal_client_id_here'
giphy_api_key = 'giphy_api_token_here'

Run the bot

$ python3 main.py

Troubleshooting

ImportError: cannot import name 'commands' from 'discord.ext' (unknown location)

AttributeError: __aexit__ / AttributeError: __aenter__

Uninstall discord.py

$ python3 -m pip uninstall discord.py discord -y

Uninstall py-cord

$ python3 -m pip uninstall py-cord

Install and Update py-cord

$ python3 pip install -U py-cord 

Note: this repository currently uses py-cord version 2.3.2

In case you have pycord installed by chance:

$ python3 -m pip uninstall pycord

Results

Got 2nd place brrrrrrrr

Side Notes

There are quite a few Honkai Impact 3rd references, such as the /yatta command and Honkai stickers from Hoyoblab set as thumbnails in some of the commands. Even the profile picture itself! Personally, I think they were a nice addition, lol.

snowcodes2022's People

Contributors

jej-v avatar

Watchers

 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.