a self-hostable single-guild discord bot for playing music and announcing vc channel joins/leaves
Go to file
a 9decd6552b Fix: actually import YoutubeSearch and fix self-variable access
doesn't actually fix the issue where youtube is blocking requests behind a signin requirement but eh
2024-10-21 21:40:57 +00:00
cogs Fix: actually import YoutubeSearch and fix self-variable access 2024-10-21 21:40:57 +00:00
.env.example add docker support 2022-12-12 06:59:44 -06:00
.gitignore Modern packaging 2022-12-12 06:59:21 -06:00
.style.yapf first commit 2022-06-23 00:09:34 -05:00
app.py Modern packaging 2022-12-12 06:59:21 -06:00
docker-compose.yml Change: mount cogs instead of copying into docker image 2024-10-21 21:38:23 +00:00
Dockerfile Fix: python:alpine fails to build certain dependencies, and so does python:3.13 for some reason 2024-10-21 21:36:25 +00:00
icon2.png first commit 2022-06-23 00:09:34 -05:00
pdm.lock support more dice notation 2023-01-17 10:47:18 -06:00
pyproject.toml Fix: add youtube-search to pyproject.toml 2024-10-21 21:33:34 +00:00
README.md Update README.md 2024-05-13 05:48:38 +00:00
requirements.txt Fix: youtube_search should be youtube-search 2024-10-21 21:33:10 +00:00

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 or libsodium
  • FFmpeg: ffmpeg
  • yt-dlp: yt-dlp
  • opus: opus

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