Discord bot for a server I run. Does joke things and role moderation.
- Copy
config.example.yml
toconfig.yml
- Replace the placeholder token
- Copy
roles.example.yml
toroles.yml
- Add the desired
rolename: roleid
pairs toroles.yml
# build image
docker build -t detjensrobert/the-bishop .
# run container as daemon with config files
docker run -d --rm --name the-bishop -v $(pwd)/config.yml:/app/config.yml \
-v $(pwd)/roles.yml:/app/roles.yml detjensrobert/the-bishop
- Install Mathematical gem dependencies:
pacman -Sy cmake base-devel python libffi libxml2 gdk-pixbuf2 cairo pango jbigkit
dnf install ruby-devel gcc-c++ cmake bison flex libffi-devel libxml2-devel glib2-devel cairo-devel cairo-gobject-devel pango-devel gdk-pixbuf2-devel jbigkit-devel libwebp-devel
apt install cmake build-essential bison flex libffi-dev libxml2-dev libwebp-dev libzstd-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev fonts-lyx
- Install required gems:
bundle install
- Run the bot:
bundle exec ruby main.rb
PRs welcome! DiscordRB is not hard to use, and their documentation has great examples.
Created by detjensrobert / @WholeWheatBagels#3140