A Discord bot that lets you play local audio tracks in your server. Written for Discord.JS v14
Find a file
2022-12-06 20:22:27 -05:00
backend Used ChatGPT to fix certain problems; Removed more unnessesary stuff 2022-12-06 20:22:27 -05:00
commands Added repeat toggle; Did some optiminizations to the code 2022-12-04 01:55:58 -05:00
.eslintrc.json Added another eslint rule 2022-07-10 01:05:59 -04:00
.gitignore Finally fixed this stupid error 2022-11-28 18:04:35 -05:00
bot.js Used ChatGPT to fix certain problems; Removed more unnessesary stuff 2022-12-06 20:22:27 -05:00
deploy-command.js Fixed about; No longer requiring guild id for deploy command 2022-07-12 19:49:42 -04:00
LICENSE.md
package.json Added repeat toggle; Did some optiminizations to the code 2022-12-04 01:55:58 -05:00
README.md Used ChatGPT to fix certain problems; Removed more unnessesary stuff 2022-12-06 20:22:27 -05:00
yarn.lock Added repeat toggle; Did some optiminizations to the code 2022-12-04 01:55:58 -05:00

DLAP Bot (Discord.JS Local Audio Player)

DLAP is a Discord bot that lets you play local audio tracks in your server. With DLAP, you can access your music files, and share your tunes with your friends and community. DLAP offers seamless integration with Discord, so you can enjoy your music without missing a beat.

Video Tutorial | Support Server

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 Requirements

  • Latest version of NodeJS (v16.9.0+)
  • Linux (or WSL for Windows users)

Configuration

Make a new file called config.json.

{
    "token": "token_here",
    "txtFile": true/false,
    "shuffle": true/false,
    "repeat": true/false,
    "statusChannel": "channel_id",
    "voiceChannel": "voice_channel_id",
    "presenceActivity": "activity_here",
    "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 { 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.