Eukon05 / dilanbot

A Discord music bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

banner

Disclamer

This bot was made a long time ago and I no longer maintain it, aside from occasional dependency updates.

Features and usage

This bot supports "slash commands" - just type / in your Discord server and all the commands will appear automatically.
The available commands are:

  • play [song title] - plays the requested song from YouTube, or puts it in the queue if something is already playing
  • play - resumes the track if paused
  • pause - pauses the track
  • skip - skips to the next track in the queue
  • clear - clears the queue
  • stop - stops the music and clears the queue
  • np - shows what track is currently playing
  • loop - enables or disabled looping of the currently playing track.
  • disconnect - disconnects the bot from a voice chat
  • 8ball [question] - asks the magic 8-ball the specified question
  • reddit [subreddit] - shows a random post from the specified subreddit

How to host the bot yourself

Before you start, you'll need to create a bot on Discord Developer Portal:

  • Go to Discord Developer Portal and create a new application.
  • Go to the BOT tab on the left and click Add Bot
  • Click Reset Token and save it in a safe place - it will be required in the next step.
  • Scroll down to Privileged Gateway Intents and enable all of the options.
  • Scroll down to Bot Permissions and select Administrator (or the permissions that are set in the invite link above).
  • Now, go to OAuth2 -> Url Generator on the left of the screen.
  • Select bot, then Administrator (or the permissions that are set in the invite link above).
  • What you've ended up with is an invitation link that you can use to add the bot to your Discord server!

After you have successfully created your access token and invite link, execute the following command in your terminal:
docker run --name dilan -e DILAN_TOKEN=putyourdiscordbottokenhere -d eukon/dilan:latest
After a few minutes, the bot should be running on your machine. You can now add it to your server with the invite link you've created.

Contributing

If you have an idea for a new feature or a bugfix, feel free to open an issue or a pull request!

Credits

This bot is using the following libraries:

Big shout out to everyone who has contributed to the projects listed above, without you, Dilan would not be possible!

About

A Discord music bot


Languages

Language:Java 99.7%Language:Dockerfile 0.3%