GithubHelp home page GithubHelp logo

andrewqt / jomd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jtyliu/jomd

0.0 0.0 0.0 4.79 MB

Discord bot for DMOJ

Home Page: https://discord.com/api/oauth2/authorize?client_id=725004198466551880&permissions=73792&scope=bot

Python 100.00%

jomd's Introduction

JOMD

JOMD is a Discord bot for Dmoj Inspired by TLE

Add the bot here!

Previews

Point history

Rating history

Point prediction

Features

The features of JOMD are split up into seperate cogs each handling their related commands.

User Cog

  cache      Caches the submissions of a user, will speed up other commands
  gimme      Recommend a problem
  predict    Predict total points after solving N pointer problem(s)
  user       Show user profile and latest submissions
  vc         Suggest a contest

Plot Cog

  points Plot point progression
  rating Plot rating progression
  type   Graph problems solved by popular problem types

Handles Cog

  link       Links your discord account to your dmoj account
  set        Manually link two accounts together
  unlink     Unlink your discord account with your dmoj account
  whois      Shows the discord account linked to the relevant dmoj account

Setup

To setup the bot first clone the repository and cd into it

git clone https://github.com/JoshuaTianYangLiu/JOMD.git
cd JOMD

Make sure you have python3.7 installed.

apt-get install python3.7

Install relevant packages

pip3.7 install -r requirements.txt

Add your discord bot token with

export JOMD_BOT_TOKEN="INSERT BOT TOKEN HERE"

If you also want to add your DMOJ api token use

export JOMD_TOKEN="INSERT DMOJ API TOKEN HERE"

Run the bot with

python3.7 Main.py

Warning: Many of the commands require multiple pieces of information to be fetched, so many initial commands will take several seconds to run but will speed up as more information is fetched and stored.

Usage

To use the bot, use the + prefix

Contributing

Pull requests are welcomed and encouraged.

jomd's People

Contributors

jtyliu avatar dependabot[bot] avatar andrewqt avatar jacklee1792 avatar plasmatic1 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.