DLAP/README.md

56 lines
1.5 KiB
Markdown
Raw Normal View History

2020-07-21 15:44:14 -04:00
# DLMP3 Bot (Discord.JS Local MP3)
2022-03-25 14:00:19 -04:00
A Discord bot that plays local MP3 audio tracks. Written in Discord.JS.
2020-07-20 22:32:51 -04:00
[Video Tutorial](https://www.youtube.com/watch?v=7X3FAhYW31I)
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
# Configuration
Make a new file called `config.json`.
```
{
"token": "token_here",
2020-07-20 20:17:40 -04:00
"botOwner": "your_user_id_here",
"txtFile": true/false
2020-07-20 20:35:46 -04:00
"statusChannel": "channel_id",
"voiceChannel": "voice_channel_id"
"guildID": "guild_id",
"clientID": "client_id",
}
```
2020-07-20 22:27:23 -04:00
Add your own audio files using the mp3 file extension to the `music` folder.
2022-03-26 17:53:07 -04:00
Deploy the commands by doing `node deploy-command.js`
Launch the bot using `node bot.js` in terminal.
2020-07-20 20:12:52 -04:00
# Help Command
```
Public Only
-----------
help - Displays commands.
ping - Pong!
git - Links to the source repo.
2022-03-28 17:42:57 -04:00
about - Information about the bot.
Bot Owner Only
--------------
join - Joins voice chat.
2020-07-22 20:19:45 -04:00
resume - Resumes music.
pause - Pauses music.
skip - Skips the audio track.
leave - Leaves voice chat.
stop - Stops bot.
2020-07-20 17:17:08 -04:00
```
# Forking
When forking the project, you can make your own version of DLMP3 or help contribute to the project (See the "Contributing" section).
But 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`.