Originally created and named "Letov" by @piunov1998
Docker integration implemented by me, @duha54rus
To download and run the latest build of the bot from Docker Hub, replace placeholders with your token and prefix of choice and execute:
docker run --volume music:/usr/src/app/music \
-e DISCORD_TOKEN=INSERT_YOUR_TOKEN_HERE \
-e DISCORD_PREFIX=TYPE_YOUR_PREFIX_HERE \
--rm -d drews54/discord-music-bot
If you want to build the container yourself:
-
Download the .zip of this branch and extract it
-
Run
docker build -t discord-music-bot .
in the extracted directory -
Create a text file (for example, name it
.env
) in the same directory, populate it with your discord bot token and chat prefix as shown below:DISCORD_TOKEN=*********************************************************** DISCORD_PREFIX="any sequence of symbols" LANG=RU or EN
-
Run
docker run --volume music:/usr/src/app/music --env-file .env --rm -d discord-music-bot
To run the bot directly on your system (without Docker), you will have to prebuild .mo files for localization to work (currently only works on Linux):
msgfmt -o locale/ru/LC_MESSAGES/Discord-Music-Bot.mo locale/ru/LC_MESSAGES/Discord-Music-Bot.po
msgfmt -o locale/en/LC_MESSAGES/Discord-Music-Bot.mo locale/en/LC_MESSAGES/Discord-Music-Bot.po