Hide actual config to avoid leaking the tokens

This commit is contained in:
Norbi Peti 2024-10-11 01:15:38 +02:00
parent 096368903a
commit 877251e9cf
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
config.yaml

View file

@ -13,6 +13,7 @@ It's also got solid foundations for Logging, Cogs, a YAML config, Mod Roles and
## Installation ## Installation
- Obtain the code, fork via git, download, doesn't matter - Obtain the code, fork via git, download, doesn't matter
- Install requirements with `pip install requirements.txt` - Copy config.example.yaml to config.yaml
- Install requirements with `pip install -r requirements.txt`
- paste discord bot token in `config.yaml` - paste discord bot token in `config.yaml`
- run with `python main.py` - run with `python main.py`

View file

@ -1,6 +1,6 @@
# Bot configuration # Bot configuration
prefix: "!" prefix: "!"
token: "" token: "Discord token"
github_url: "https://git.norbipeti.eu/ExMods/RC2Bot" github_url: "https://git.norbipeti.eu/ExMods/RC2Bot"
# A list of cogs to load at startup # A list of cogs to load at startup
@ -11,6 +11,7 @@ cogs:
# API configuration # API configuration
api_url: "https://norbipeti.eu/rc2matchmaking" api_url: "https://norbipeti.eu/rc2matchmaking"
api_token: "API token"
# Add routes here. # Add routes here.
routes: routes:
start_server: "/server/start" start_server: "/server/start"