2024-06-13 05:57:34 -04:00
|
|
|
# Veloren Group Bot
|
|
|
|
|
|
|
|
Group management bot for [Veloren](https://veloren.net)
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2025-03-07 13:26:55 -05:00
|
|
|
If you choose to run this but with Docker or Podman, you only need to create a local secrets.toml.
|
2024-06-13 05:57:34 -04:00
|
|
|
But if you choose to compile you must clone this repository.
|
|
|
|
|
|
|
|
### Step 1: Create config.toml
|
|
|
|
|
2025-03-07 13:26:55 -05:00
|
|
|
Create a secrets.toml file in the project root.
|
2024-06-13 05:57:34 -04:00
|
|
|
|
|
|
|
```toml
|
|
|
|
# config.toml
|
|
|
|
username = "YOUR_USERNAME"
|
|
|
|
password = "YOUR_PASSWORD"
|
2025-03-07 13:26:55 -05:00
|
|
|
character = "YOUR_CHARACTER"
|
2024-06-13 05:57:34 -04:00
|
|
|
admin_list = []
|
|
|
|
```
|
|
|
|
|
|
|
|
### Step 2: Run via Docker/Podman
|
|
|
|
|
|
|
|
Use Podman (or Docker) to run the release build without exposing secrets. First, create the secret.
|
|
|
|
|
|
|
|
```sh
|
2025-03-07 13:26:55 -05:00
|
|
|
podman secret create secrets.toml secrets.toml
|
2024-06-13 05:57:34 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Then run the container.
|
2025-03-07 13:26:55 -05:00
|
|
|
|
2024-06-13 05:57:34 -04:00
|
|
|
```sh
|
|
|
|
podman run \
|
2025-03-07 13:26:55 -05:00
|
|
|
--detach \
|
|
|
|
--secret secrets.toml \
|
|
|
|
--env SECRETS=/run/secrets/secrets.toml \
|
2024-06-13 05:57:34 -04:00
|
|
|
git.jeffa.io/jeff/group_bot
|
|
|
|
```
|
|
|
|
|
|
|
|
### Step 2 (Alternate): Run via cargo
|
|
|
|
|
|
|
|
Install [rustup](https://rustup.sh) and use cargo to compile and run the bot.
|
|
|
|
|
|
|
|
```sh
|
2025-03-07 13:26:55 -05:00
|
|
|
SECRETS=secrets.toml cargo run --release
|
2024-06-13 05:57:34 -04:00
|
|
|
```
|