Coder Social home page Coder Social logo

plutokekz / discordbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 954 KB

A Discord Bot for the Deutsche Bahn 2 Server

License: GNU General Public License v3.0

Python 98.38% Dockerfile 0.44% Mako 1.18%
deutsche-bahn discord discord-bot docker music-bot music-player poetry python3 self-hosted youtube-dl

discordbot's Introduction

DiscordBot

A discord bot for the DeutscheBahn2 discord server

Features

  • 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

Discord Commands

Music

!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

Deutschebahn

!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 img.png

Mvg

!subscribe-slim   Subscribe to the mvg disruption ticker
!unsubscribe-slim Unsubscribe to the mvg disruption ticker

Example message: img_1.png

Installation

development

git clone https://github.com/Plutokekz/DiscordBot
cd DiscordBot
poetry install
export DiscordToken="Your Discord Token"
poetry run python main.py

docker and docker-compose

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

Config

the config file is located in the config directory. Every Discord Cog has its own section.

Music

config for the music_cog

Online

ytdl_format_options

config for the youtube_dl module. For morw Information checkout youtube_dl

ffmpeg_options

config for the discord.FFmpegPCMAudio, nothing spacial. For more information checkout the discordpy api

default_info

If youtube_dl cant fetch all metadata, the data from this config get taken

deutschebahn

config for the deutschebahn_cog

hour

an hour when the Station of the Day message gets posted every day

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.