2022-05-27 14:30:58 +02:00
|
|
|
# Discord bot for 42CTF
|
|
|
|
|
|
|
|
This bot allows you to automatically assign the top1/top10/top50 roles on the 42CTF Discord server.
|
|
|
|
|
|
|
|
To use it you just have to create the docker container :
|
|
|
|
```
|
|
|
|
docker build -t discord_bot .
|
|
|
|
```
|
|
|
|
|
|
|
|
Create an `env.list` file containing :
|
|
|
|
```
|
|
|
|
DISCORD_TOKEN=<token_discord>
|
|
|
|
AUTH_TOKEN=<api_42CTF_token>
|
|
|
|
```
|
|
|
|
|
|
|
|
And then run it with :
|
|
|
|
```
|
|
|
|
docker run -d --env-file env.list --name discord_bot
|
|
|
|
```
|