This bot was made a long time ago and I no longer maintain it, aside from occasional dependency updates.
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 playingplay
- resumes the track if pausedpause
- pauses the trackskip
- skips to the next track in the queueclear
- clears the queuestop
- stops the music and clears the queuenp
- shows what track is currently playingloop
- enables or disabled looping of the currently playing track.disconnect
- disconnects the bot from a voice chat8ball [question]
- asks the magic 8-ball the specified questionreddit [subreddit]
- shows a random post from the specified subreddit
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 clickAdd 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 selectAdministrator
(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
, thenAdministrator
(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.
If you have an idea for a new feature or a bugfix, feel free to open an issue or a pull request!
This bot is using the following libraries:
- Javacord
- LavaPlayer Fork by Walkyst
- Gson
- KCommando by Koply
- 8Ball API
Big shout out to everyone who has contributed to the projects listed above, without you, Dilan would not be possible!