A discord bot for the DeutscheBahn2 discord server
- play Youtube videos/playlists
- change the status to the current playing song
- have a look at the queued songs
- a database with requested song's and requester
- Post a Station of the Day message to subscribed channels in a specified interval
- Post the current delays of the mvg in the subscribed channels
!play <your link / youtube search>
!pause pause the current song
!resume resume the current song
!stop stop the bot and discord the current queue
!queue show waht songs are in the queue
!skip stop the current playingt song and play the next one in the queue
!subscribe Subscribe to the Station of the day message with this channel
!unsubscribe Unsubscribe to the Station of the day message with this channel
An example Station of the day message. You can control when the station message should be posted
!subscribe-slim Subscribe to the mvg disruption ticker
!unsubscribe-slim Unsubscribe to the mvg disruption ticker
git clone https://github.com/Plutokekz/DiscordBot
cd DiscordBot
poetry install
export DiscordToken="Your Discord Token"
poetry run python main.py
git clone https://github.com/Plutokekz/DiscordBot
cd DiscordBot
docker build -t discord-bot .
Add your Discord token to the docker-compose.yml
file
docker-compose up -d
the config file is located in the config
directory. Every Discord Cog has its own section.
config for the music_cog
config for the youtube_dl module. For morw Information checkout youtube_dl
config for the discord.FFmpegPCMAudio
, nothing spacial.
For more information checkout the discordpy api
If youtube_dl cant fetch all metadata, the data from this config get taken
config for the deutschebahn_cog
an hour when the Station of the Day message gets posted every day