This is musical Discord bot.
ping
- check connection to the serverradio [name]
- play direct radio stream from the libradiolist
- show lib of radiostationsstop
- stop whatever plays nowprune [count]
- delete [count] messages (admin only)prunetime [time (XXdXXhXXmXXs)]
- delete messages that was sent in [time] period (admin only)play
- (WIP) play audio from YT video
version: '3.8'
services:
not-a-bot:
image: kseen/not-a-bot:latest
container_name: not-a-bot
restart: unless-stopped
environment:
TOKEN: "<your Discord app token>"
PREFIX: "<prefix for a bot, like '!', '>', '-' and etc.>"
Install FFmpeg.
python3 pip install -r requirements.txt
Then create .env
file with fields as:
TOKEN=<your Discord app token>
PREFIX=<prefix for a bot, like '!', '>', '-' and etc.>
Now you're ready to run app:
python3 main.py
Install FFmpeg.
Create venv:
python3 -m venv venv
Activate venv:
venv\Scripts\activate
Update pip module inside of the venv (I use pypa script):
curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py
Install all dependencies:
pip install -r requirements.txt --no-cache-dir --quiet
Run app:
python main.py
For the first run use venv-setup.ps1
. It will create new venv and setup all needed stuff. Or to use already created run venv, use script venv-run.ps1
. After that just run:
python main.py