2022-03-30 16:34:24 -04:00
|
|
|
# DLAP Bot (Discord.JS Local Audio Player)
|
2022-03-25 14:00:19 -04:00
|
|
|
|
2022-03-30 16:34:24 -04:00
|
|
|
A Discord bot that plays local audio tracks. Written in Discord.JS.
|
2020-07-20 22:32:51 -04:00
|
|
|
|
2022-07-15 15:53:52 -04:00
|
|
|
[Video Tutorial](https://youtu.be/Gvva8LHjOOo)
|
2020-07-21 15:29:57 -04:00
|
|
|
|
2022-03-28 19:53:00 -04:00
|
|
|
If you want to add a feature or there's anything wrong, feel free to make a fork and put a pull request.
|
2020-07-20 17:55:27 -04:00
|
|
|
|
2022-07-11 23:14:58 -04:00
|
|
|
# Recommended Software
|
|
|
|
- Latest version of NodeJS (v18.5.0+)
|
|
|
|
- Linux (or WSL for Windows users)
|
|
|
|
|
2020-07-20 16:09:35 -04:00
|
|
|
# Configuration
|
2020-07-20 20:26:26 -04:00
|
|
|
Make a new file called `config.json`.
|
2020-07-20 16:09:35 -04:00
|
|
|
```
|
|
|
|
{
|
|
|
|
"token": "token_here",
|
2022-07-10 13:58:09 -04:00
|
|
|
"txtFile": true/false,
|
2022-07-11 23:14:58 -04:00
|
|
|
"shuffle": true/false,
|
2020-07-20 20:35:46 -04:00
|
|
|
"statusChannel": "channel_id",
|
2022-07-12 19:49:42 -04:00
|
|
|
"voiceChannel": "voice_channel_id",
|
2022-04-03 16:43:47 -04:00
|
|
|
"clientID": "client_id"
|
2020-07-20 16:09:35 -04:00
|
|
|
}
|
2020-07-20 16:57:03 -04:00
|
|
|
```
|
|
|
|
|
2022-03-30 16:34:24 -04:00
|
|
|
Create the `music` folder.
|
2020-07-20 20:26:26 -04:00
|
|
|
|
2022-03-30 16:34:24 -04:00
|
|
|
Add your own audio files to the `music` folder.
|
|
|
|
|
|
|
|
Deploy the commands by doing `node deploy-command.js`.
|
2022-03-26 17:53:07 -04:00
|
|
|
|
2020-07-20 20:26:26 -04:00
|
|
|
Launch the bot using `node bot.js` in terminal.
|
2020-07-20 20:12:52 -04:00
|
|
|
|
2020-07-20 16:57:03 -04:00
|
|
|
# Help Command
|
|
|
|
```
|
|
|
|
Public Only
|
|
|
|
-----------
|
|
|
|
ping - Pong!
|
2022-07-06 05:56:09 -04:00
|
|
|
status - Checks what audio file is playing currently.
|
2022-03-28 17:42:57 -04:00
|
|
|
about - Information about the bot.
|
2020-07-20 16:57:03 -04:00
|
|
|
|
|
|
|
Bot Owner Only
|
|
|
|
--------------
|
2020-07-20 20:26:26 -04:00
|
|
|
join - Joins voice chat.
|
2022-07-06 05:56:09 -04:00
|
|
|
play - Resumes music.
|
|
|
|
play (int) - Input a number for the selection for the audio file.
|
2020-07-22 20:19:45 -04:00
|
|
|
pause - Pauses music.
|
2022-07-13 22:03:05 -04:00
|
|
|
next - Goes to next music.
|
|
|
|
previous - Goes to previous music.
|
2022-07-08 12:09:06 -04:00
|
|
|
reshuffle - Reshuffles the playlist
|
2020-07-20 20:26:26 -04:00
|
|
|
leave - Leaves voice chat.
|
2022-07-07 23:49:37 -04:00
|
|
|
shutdown - Powers off the bot.
|
2020-07-20 17:17:08 -04:00
|
|
|
```
|
2022-03-28 19:53:00 -04:00
|
|
|
|
|
|
|
# Forking
|
2022-03-30 22:01:18 -04:00
|
|
|
When forking the project, you can make your own version of DLAP or help contribute to the project (See the "Contributing" section).
|
2022-03-28 19:53:00 -04:00
|
|
|
|
2022-07-17 18:15:16 -04:00
|
|
|
You need to edit `/commands/about.js` to uncomment the `.addFields({ name: 'Forked by', value: '[your name] (discord#0000)' })` section.
|
2022-03-28 19:53:00 -04:00
|
|
|
|
|
|
|
Be sure to replace that with your name.
|
|
|
|
|
|
|
|
# Contributing
|
2022-07-10 13:58:09 -04:00
|
|
|
When contributing, be sure to add yourself to the contributors list in `/commands/about.js`.
|