GithubHelp home page GithubHelp logo

red_cogs's Introduction

Red Bot Cogs

Cogs for the Red-DiscordBot by Cog Creators. Cogs in this repo can only be used with the V3 version.

Installation

To add the repo to the repository manager:

[p]repo add j3cogs https://github.com/jaw3l/red_cogs

To install from the repo:

[p]repo install j3cogs <cog_name>

Cogs

EGS

Fetches free games from Epic Games Store.

Usage

[p]egs - Lists current week's free games as a menu

[p]egs upcoming - Lists upcoming week's free games as a menu

[p]egs list - Lists current week's games one by one

Requirements

You can install the requirements seperately:

[p]pipinstall colorthief - Required for getting dominant color of game's cover image

[p]pipinstall datetime - Required for parsing dates

[p]pipinstall httpx - Required for fetching data from Epic Games Store

Or you can use one command to install all requirements:

[p]pipinstall colorthief datetime httpx

CODEWARS

Fethes data from Codewars. It can fetch:

  • User's profile information
  • Last completed katas
  • User's skills
  • User's languages
  • Information about a specific kata

Usage

[p]codewars <username> - Fetches user's profile information

[p]codewars completed <username> - Fetches user's last completed katas

[p]codewars skills <username> - Fetches user's skills

[p]codewars languages <username> - Fetches user's languages

[p]codewars kata <kata_id> - Fetches information about a specific kata

Tips:

  • You can use aliases for commands. For example, you can use [p]cw instead of [p]codewars.
  • You can save your username to the database using [p]settings username set <username>. Then you can use just [p]codewars instead of [p]codewars <username>.

Requirements

You can install the requirements seperately:

[p]pipinstall httpx - Required for fetching data from Epic Games Store

[p]pipinstall lxml - Required for getting avatars of users from GitHub

[p]pipinstall datetime - Required for parsing dates

[p]pipinstall time - Required for converting ISO 8601 time to unix (epoch) time

Or you can use one command to install all requirements:

[p]pipinstall httpx lxml datetime time

Credits

httpx - HTTPX is a fully featured HTTP client library for Python 3.

datetime - DateTime is a Python module for manipulating dates and times.

colorthief - Color Thief is a Python module for getting the dominant color or a representative color palette from an image.

lxml - lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries.

time - This module provides various functions to manipulate time values.

menu.py - There is a menu in this cog. I edited the original menu from Red Discord Bot.

Contact

If you have any problem or if you want to improve my cogs, feel free to use issue or pull requests!

red_cogs's People

Contributors

jaw3l 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.