A Discord bot that lets you play local audio tracks in your server. Written for Discord.JS v14
Find a file
2022-12-20 18:05:51 -05:00
.github Create FUNDING.yml 2022-12-10 01:32:23 -05:00
AudioBackend Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
Commands Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
Locales Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
Utilities Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -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 Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-12-18 23:30:23 -05:00
deploy-command.js Improved list command; Directory name change; Fixed ActivityType 2022-12-18 22:36:32 -05:00
LICENSE.md License 2020-07-19 15:32:22 -04:00
package.json Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
README.md Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -05:00
yarn.lock Revamped next/previous cmds (Voting system); Basic i18n support; 2022-12-20 18:05:51 -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.

Looking for Maintainers

As you know, I may not keep up the project at times. I will need to form a team in order to implement new features and make this project better.

If you want to become a maintainer, you must at least know this source code, JavaScript and NodeJS. Also you must join my discord server (Support Server) to communicate with me.

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",
    "clientID": "client_id",
    "ownerID": "your_user_id",
    "djRole": "role_id",
    "presenceActivity": "activity_here",
    "activityType": [0 (Playing)/1 (Streaming)/2 (Listening)/3 (Watching)/4 (Custom)/5 (Competing)]
}

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.
list - Lists the available audio tracks.
list (page) - Input a number to change the page of the list.
next vote - Goes to next music by vote.
previous vote - Goes to previous music by vote.

Special Permissions Only
--------------
join - Joins voice chat.
play - Resumes music.
play (int) - Input a number for the selection for the audio file.
pause - Pauses music.
next force - Goes to next music by force.
previous force - Goes to previous music by force.
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.

Credits

ChatGPT: Some code in this codebase used ChatGPT