discord music bot
Go to file
ekzyis a24cb394a5 Merge branch '37-unable-to-extract-uploader-id' into 'develop'
Resolve "Unable to extract uploader id"

Closes #37

See merge request ekzyis/musicube!31
2023-02-28 13:45:32 +00:00
.vscode Add pytest to vscode config 2022-09-26 22:34:51 +02:00
src Replace youtube_dl with yt-dlp 2023-02-28 14:44:07 +01:00
test Move 'Now playing:' from embed to message content 2022-09-26 22:49:55 +02:00
.dockerignore Run pre-commit on all files 2022-04-15 01:22:45 +02:00
.env.template Run pre-commit on all files 2022-04-15 01:22:45 +02:00
.gitignore Run pre-commit on all files 2022-04-15 01:22:45 +02:00
.gitlab-ci.yml Update deprecated CI config 2022-09-26 20:56:47 +02:00
.pre-commit-config.yaml Install pre-commit 2022-04-15 01:22:34 +02:00
.pylintrc Run pre-commit on all files 2022-04-15 01:22:45 +02:00
Dockerfile Add env vars to docker image 2021-11-04 00:59:52 +01:00
Makefile Put run command into Makefile 2023-01-27 21:51:06 +00:00
README.md Put run command into Makefile 2023-01-27 21:51:06 +00:00
deploy.sh Add deploy job and deploy script 2021-09-26 01:10:52 +02:00
pyproject.toml Run pre-commit on all files 2022-04-15 01:22:45 +02:00
requirements.txt Replace youtube_dl with yt-dlp 2023-02-28 14:44:07 +01:00

README.md

musicube

Development

Requirements:

$ python --version
3.9.7

Configure virtual environment:

$ python -m venv venv
$ source venv/bin/activate

Install requirements:

$ pip install -r requirements.txt
$ pacman -S ffmpeg

Configure ENV:

$ cp .env.template .env
# Write BOT_TOKEN into .env

Run bot:

$ python src/bot.py

Deployment

Requirements:

$ docker --version
Docker version 20.10.8, build 3967b7d28e
$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build image:

$ cp .env docker.env
$ make build

Run image:

$ make run