A Discord bot that lets you play local audio tracks in your server. Written for Discord.JS v14
Find a file
2022-07-09 16:56:04 -04:00
commands Using Durstenfeld shuffle, replacing Fisher-Yates 2022-07-09 16:56:04 -04:00
.gitignore Cleaning up some stuff; Deprecating botOwner as Admin is required for commands 2022-07-06 05:56:09 -04:00
AudioBackend.js Using Durstenfeld shuffle, replacing Fisher-Yates 2022-07-09 16:56:04 -04:00
bot.js New shuffling system (not bug free yet); Tweaks and fixes on other commands 2022-07-07 23:49:37 -04:00
deploy-command.js Removed help; Updated all the new commands; Finally removed final control panel code 2022-07-05 23:08:59 -04:00
LICENSE.md License 2020-07-19 15:32:22 -04:00
package.json New shuffling system (not bug free yet); Tweaks and fixes on other commands 2022-07-07 23:49:37 -04:00
README.md New command; Some tweaks 2022-07-08 12:09:06 -04:00

DLAP Bot (Discord.JS Local Audio Player)

A Discord bot that plays local audio tracks. Written in Discord.JS.

Video Tutorial

If you want to add a feature or there's anything wrong, feel free to make a fork and put a pull request.

Configuration

Make a new file called config.json.

{
    "token": "token_here",
    "txtFile": true/false
    "statusChannel": "channel_id",
    "voiceChannel": "voice_channel_id"
    "guildID": "guild_id",
    "clientID": "client_id"
}

Create the music folder.

Add your own audio files to the music folder.

Deploy the commands by doing node deploy-command.js.

Launch the bot using node bot.js in terminal.

Help Command

Public Only
-----------
ping - Pong!
status - Checks what audio file is playing currently.
about - Information about the bot.

Bot Owner Only
--------------
join - Joins voice chat.
play - Resumes music.
play (int) - Input a number for the selection for the audio file.
pause - Pauses music.
skip - Skips the audio track.
reshuffle - Reshuffles the playlist
leave - Leaves voice chat.
shutdown - Powers off the bot.

Forking

When forking the project, you can make your own version of DLAP or help contribute to the project (See the "Contributing" section).

You need to edit /commands/about.js to uncomment the .addField('Forked by', '[your name] (discord#0000)') section.

Be sure to replace that with your name.

Contributing

When contributing, be sure to add yourself to the contributors list in /commands/about.js.