Skip to content

isala404/RathuMakaraFM-DiscordBot

Repository files navigation

codebeat badge GitHub issues GitHub Action Requirements Status GitHub license Platform Say Thanks! Discord Shield Twitter Follow

RathuMakaraFM-DiscordBot

This Discord Bot Used to Manage The first Sri Lanken Open-Mic Online Radio, RathumakaraFM

Technologies Used

  • Async.io
  • Docker
  • WebSocket
  • OAuth2
  • ffmpeg
  • Discord.py

Commands for @admin/@DJ

!play [song url | song name]                                          (alias - !p)
-  Play Song from url or search youtube if only a name is given
!playnext [song url | song name]                                      (alias - !pn)
- Add this song to top of the queue
!playnow [song url | song name] 
- Skip song currently playing song and instantly start playing this the song
!playlist [playlist url]
-  Plays a entire playlist from youtube **only works for youtube
!join
-  Join callers current channel
!volume [level]                                                       (alias - !v)
-  Change the Volume level
!skip                                                                 (alias - !s)
-  Skip the current song
!pause                                                                (alias - !ps)
-  Pause the current song
!resume                                                               (alias - !r)
-  Resume the current song
!clearQueue
-  Clear the whole playlist
!stream [stream url]
-  Playback a live stream **only works on twitch.tv
!remove [song number]                                                 (alias - !rm)
-  Remove the song from the queue
!autoplay [on/off]                                                    (alias - !ap)
-  Enable/Disable Auto Playing Music if Queue is empty
!shuffle
-  Pseudo randomly shuffle the queue
!reset
-  Restart the bot
!move [song to be moved] [position to be moved]                       (alias - !m)
-  Change the position of the song in the queue, if second 
-  option is not give song will be moved to top of the queue

Commands for @everyone

!request [song url | song name]                                       (alias - !req)
-  You can request a song by a url or song name and 
-  admins review it and add it to queue
-  This command only work in #song-request
!hello
-  Bot will say hello to you
WARNING: This was tailor made to run on Rathumakara Discord

Setup Development Environment

You need to have docker installed on your system and build the custom docker image with the Dockerfile on .github/development

cd .github/development
docker-compose up --build

Usage

  • Update the environment variables in .github/development/docker-compose.yaml
  • Build the Docker container with docker-compose up --build

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.