Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bridge
event_socket_server
handlers
models
DMOBGame.py
DMOBMain.py
LICENSE
README.md
database.py
dmob.sql
requirements.txt
settings.py
util.py

README.md

DMOB: Modern Online Bot

A Discord bot with program judging capabilities by using the DMOJ judge.

Installation

First, clone the repository:

$ git clone https://github.com/Ninjaclasher/DMOB-Modern-Online-Bot
$ cd DMOB-Modern-Online-Bot

Next, install the prerequisites

$ apt update
$ apt install mariadb-server git python3
$ pip install -r requirements.txt

As well, create the MySQL database and load the tables:

$ mysql -u root -p
MariaDB> CREATE DATABASE dmob DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;
MariaDB> GRANT ALL PRIVILEGES ON dmob.* to 'dmob'@'localhost' IDENTIFIED BY '<password>';
MariaDB> exit
$ mysql -uroot -p dmob < dmob.sql

Finally, create the necessary files and folders:

$ mkdir judges
$ mkdir problems

Usage

Edit the settings.py file, and fill in any necessary fields. In particular, you should fill in the DMOBToken field with a Discord bot token.

To run:

$ python3 DMOBMain.py

To add judges, please follow the instructions from the DMOJ Judge.

You can’t perform that action at this time.