A Discord bot that lets you play local audio tracks in your server. Written for Discord.JS v14
Find a file
2022-07-23 01:31:37 -04:00
commands Eslinting some stuff 2022-07-17 18:18:40 -04:00
.eslintrc.json Added another eslint rule 2022-07-10 01:05:59 -04:00
.gitignore Removed yarn.lock and package-lock.json from .gitignore 2022-07-12 16:54:17 -04:00
AudioBackend.js Eslinting some stuff 2022-07-17 18:18:40 -04:00
bot.js Removed web streaming; Fixed security problems 2022-07-23 01:31:37 -04:00
deploy-command.js Fixed about; No longer requiring guild id for deploy command 2022-07-12 19:49:42 -04:00
LICENSE.md License 2020-07-19 15:32:22 -04:00
package.json Removed web streaming; Fixed security problems 2022-07-23 01:31:37 -04:00
README.md Updated to v14 2022-07-17 18:15:16 -04:00
yarn.lock Removed web streaming; Fixed security problems 2022-07-23 01:31:37 -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.

Recommended Software

  • Latest version of NodeJS (v18.5.0+)
  • Linux (or WSL for Windows users)

Configuration

Make a new file called config.json.

{
    "token": "token_here",
    "txtFile": true/false,
    "shuffle": true/false,
    "statusChannel": "channel_id",
    "voiceChannel": "voice_channel_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.
next - Goes to next music.
previous - Goes to previous music.
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 .addFields({ name: 'Forked by', value: '[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.