Frost is a personal Discord bot. It handles booster roles, birthday perks, and more.
Ruby version 3.3, 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 instructions.
- Install dependencies
Simply do: bundle install
.
- Create the database in PostgreSQL
You'll need to be using PostgreSQL 14 or higher. Type the following into the PostgreSQL manager:
CREATE ROLE frost WITH LOGIN PASSWORD 'yourpasswordhere';
CREATE DATABASE frigid OWNER frost;
CREATE EXTENSION pg_trgm;
- 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:
OWNER: "YOUR_ID_HERE"
TOKEN: "Bot TOKEN_HERE"
CONTRIBUTORS: []
# Information about a manga chapter.
Chapter:
LINK: ""
CHANNEL: ""
ELEMENT: ""
# 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
Either build the Dockerfile, or do: bundle exec ruby --yjit core.rb
.
I'm required to have one of these. No private information is stored.