Ticketing system for the Pacifica Discord server implemented in Rust.
Find a file
2025-03-11 17:11:42 +11:00
migrations chore: init 2025-02-21 22:52:20 +11:00
src chore: init 2025-02-21 22:52:20 +11:00
.env.example chore: init 2025-02-21 22:52:20 +11:00
.gitignore chore: init 2025-02-21 22:52:20 +11:00
Cargo.lock chore: init 2025-02-21 22:52:20 +11:00
Cargo.toml chore: init 2025-02-21 22:52:20 +11:00
config.toml chore: init 2025-02-21 22:52:20 +11:00
diesel.toml chore: init 2025-02-21 22:52:20 +11:00
README.md chore: add readme instructions 2025-03-11 17:11:42 +11:00

Placid Ticketing System

Made for the Pacifica Discord server

This program has only been tested with rustc 1.84.0 on x86_64. No cross-platform compatibilities are guaratneed.

Configuration

A configuration file must be provided along with appropriate environment variables. By default, the program expects the config file to be at $PWD/config.toml, but this path can be overriden with then CONFIG_PATH environment variable.

Environment Variables

CONFIG_PATH - Override the configuration file's location.

DISCORD_TOKEN - Required: The Discord token of the bot. Create a bot at discord.dev.

ENV - Required: Set to 'production' or 'development'. Controls where commands are registered and the running of embedded database migrations.

TEST_GUILD - Only required if ENV is set to 'development'.

DATABASE_URL - Required: A PostgreSQL database URL in the format postgres://username:password@host:port/database

Configuration File

See the existing example in this repository. This configuration file should be in toml and configures the exact channel and role IDs to use, which differ between servers and may change, so it is not hardcoded into the binary.

Installation

Compile and place the binary somewhere. It is recommended to use a process manager such as systemd or to dockerize this software for easier deployment.