a
6a7ec8eef7
squashed commits: - fix unpacking regex matches for dice notation - fix missing cast to integer - fix raw result output - fix formatting of chat message for raw result - faster dockerfile builds? - fancier output format - fix variable name collision - remove unnecessary newline - more robust handling of dF - fix typo - fix formatting - use blank character for dF |
||
---|---|---|
cogs | ||
.env.example | ||
.gitignore | ||
.style.yapf | ||
app.py | ||
docker-compose.yml | ||
Dockerfile | ||
icon2.png | ||
pdm.lock | ||
pyproject.toml | ||
README.md | ||
requirements.txt |
umi
a self-hostable single-guild discord bot for playing music and announcing vc channel joins/leaves
Pre-requisites
Install dependencies:
- FFI:
libffi
- NaCl:
libnacl
orlibsodium
- FFmpeg:
ffmpeg
Copy .env.example
to .env
:
-
DISCORD_BOT_TOKEN
is obtained from the Discord Developer Dashboard- Click or create an application
- Get your token from the "Bot" section in the sidebar menu
-
DISCORD_GUILD_ID
is obtained from within the Discord app- Settings > Advanced > Developer Mode: enabled
- Right click the guild and select "Copy ID"
-
DISCORD_BOT_ADMIN_ROLE_ID
for reloading cogs -
DISCORD_BOT_ADMIN_USER_ID
for reloading cogs -
DISCORD_VCJOIN_CHANNEL
for the VCJoin cog
Setup
...with PDM
pdm install --prod
pdm run python app.py
...with requirements.txt and virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py
...with Docker Compose
docker compose build
docker compose up -d