A blazingly 🦀 fast 🚀 Discord soundboard
Find a file
Florentin Schäfer 9e2a05f2a1
Remove lto
improves compile-time a lot
2025-04-10 19:51:49 +02:00
src Move env variable fetching to main.rs 2025-04-08 13:00:34 +02:00
.dockerignore remove ffmpeg from Dockerfile and update .dockerignore 2023-12-02 21:27:52 +01:00
.gitignore Add Cargo.lock 2023-11-08 18:00:58 +01:00
Cargo.lock Bump version 2025-04-10 16:53:03 +02:00
Cargo.toml Remove lto 2025-04-10 19:51:49 +02:00
Dockerfile Use Alpine for building Docker image 2025-04-09 11:16:36 +02:00
LICENSE Update LICENSE 2024-01-26 21:49:15 +01:00
logo.jpg Add README.md 2023-02-09 09:13:42 +00:00
README.md Update README.md 2024-03-07 13:55:06 +01:00

Rusty BruhBot

The legendary BruhBot impoved and rewritten in Rust.

BruhBot Logo

Requirements

Pocketbase

Rusty-BruhBot uses PocketBase to store commands an sounds and accesses the data using PocketBases REST-API.

PocketBase Schema
[
    {
        "id": "zteq3osgzz3rli1",
        "name": "sounds",
        "type": "base",
        "system": false,
        "schema": [
            {
                "id": "dvimlam0",
                "name": "audio",
                "type": "file",
                "system": false,
                "required": true,
                "options": {
                    "maxSelect": 1,
                    "maxSize": 5242880,
                    "mimeTypes": [],
                    "thumbs": [],
                    "protected": false
                }
            },
            {
                "id": "v1dwfeqt",
                "name": "command",
                "type": "text",
                "system": false,
                "required": true,
                "options": {
                    "min": null,
                    "max": null,
                    "pattern": ""
                }
            }
        ],
        "indexes": [],
        "listRule": "",
        "viewRule": "",
        "createRule": null,
        "updateRule": null,
        "deleteRule": null,
        "options": {}
    }
]

External dependencies

For this bot to work opus needs to be installed on your system. For more details on how to install these dependencies, look at the dependencies section of Songbird. For everything else audio-related BruhBot uses Symphonia, introduced in Songbird 0.4.0.

Configuration

Rusty-BruhBot uses environment-variables to configure the Discord-token and the PocketBase API endpoint. Alternatively, a .env-file can be used:

DISCORD_TOKEN=...
POCKETBASE_API=http://127.0.0.1:8090

Deployment

It is recommended to use Docker for deployment because all dependencies except for PocketBase are bundeled with it. The following example assumes that you have already set up and configured PocketBase as described above:

docker run -d --env-file .env --net=host ghcr.io/letusflow/rusty-bruhbot

License

GPL