blob: 4a2034d6d23a50ac61dd84b2161c288cd4cc9f70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
EVALBOT
------
Discord Code eval bot using the [Compilebot][compilebot] API.
### SETUP
- Create a discord bot account at [the discord developers page][discord-devs]. **IMPORTANT** Create a bot user as well.
- Go to the [Compilebot][compilebot] website and subscribe to a plan.
- clone the repository and create a [Virtual Environment][venv]
- Install all the requirements via `pip install -r requirements.txt`
- Create a `config.ini` in the following format:
```ini
[discord]
token = YOURDISCORDTOKEN. DISCORD! TOKEN! NOT ID OR SECRET
[jdoodle]
id = yourcompilebotid
secret = yourcompilebotsecret
```
- Launch the bot via `python main.py`. If you want to run the bot permanently i recommend using `tmux` or `screen`.
[compilebot]: https://www.jdoodle.com/compiler-api/
[discord-devs]: https://discordapp.com/developers/applications/me
[venv]: https://docs.python.org/3/library/venv.html
|