Frost is a personal Discord bot. It handles booster perks, birthday roles, and more.
Ruby version 3.4, a PostgreSQL database, and Docker is needed to run the bot.
- Install the latest version of Ruby
This should be fairly self-explanatory. See here for detailed instructions.
- Install dependencies
Simply do: bundle install
.
- Create the database in PostgreSQL
You'll need to be using PostgreSQL version 17 or higher. Type the following into the PostgreSQL manager:
CREATE ROLE frost WITH LOGIN PASSWORD 'urpassword';
CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE DATABASE tundra OWNER frost;
- Fill in configuration variables
Change the name of the example.yml
file to config.yml
and fill in all the variables.
# Discord related credentials.
Discord:
TOKEN: "TOKEN_HERE"
OWNER: "YOUR_ID_HERE"
# Manga chapter related credentials.
Chapter:
LINK: ""
CHANNEL: ""
ELEMENT: ""
# the auto-moderation configuration.
Moderator:
GUILD: ""
CHANNEL: ""
# Database related credentials.
Postgres:
URL: "postgres://URI_HERE"
Many of these variables are undocumented because the bot is meant for personal use.
- Run the bot
Build the Dockerfile with docker build . -t frost:latest --shm-size=2g
I'm required to have one of these. No private information is stored.