2020-07-21 15:44:14 -04:00
|
|
|
# DLMP3 Bot (Discord.JS Local MP3)
|
2022-03-25 14:00:19 -04:00
|
|
|
|
2020-07-20 22:32:51 -04:00
|
|
|
A Discord bot that plays local mp3 audio tracks. Written in Discord.JS.
|
|
|
|
|
2020-07-21 15:29:57 -04:00
|
|
|
[Video Tutorial](https://www.youtube.com/watch?v=7X3FAhYW31I)
|
|
|
|
|
2020-07-20 22:32:51 -04:00
|
|
|
(Originally for Alee's birthday)
|
2020-07-20 16:09:35 -04:00
|
|
|
|
2020-07-20 17:55:27 -04:00
|
|
|
If there's anything wrong, feel free to make a fork and put a pull request.
|
|
|
|
|
2020-07-20 16:09:35 -04:00
|
|
|
# Configuration
|
2020-07-20 20:26:26 -04:00
|
|
|
Make a new file called `config.json`.
|
2020-07-20 16:09:35 -04:00
|
|
|
```
|
|
|
|
{
|
|
|
|
"token": "token_here",
|
2020-07-20 22:35:20 -04:00
|
|
|
"prefix": "dl:",
|
2020-07-20 20:17:40 -04:00
|
|
|
"botOwner": "your_user_id_here",
|
2020-07-20 20:35:46 -04:00
|
|
|
"statusChannel": "channel_id",
|
|
|
|
"voiceChannel": "voice_channel_id"
|
2022-03-26 13:43:03 -04:00
|
|
|
"guildID": "guild_id",
|
|
|
|
"clientID": "client_id",
|
2020-07-20 16:09:35 -04:00
|
|
|
}
|
2020-07-20 16:57:03 -04:00
|
|
|
```
|
|
|
|
|
2020-07-20 22:27:23 -04:00
|
|
|
Add your own audio files using the mp3 file extension to the `music` folder.
|
2020-07-20 20:26:26 -04:00
|
|
|
|
|
|
|
Launch the bot using `node bot.js` in terminal.
|
2020-07-20 20:12:52 -04:00
|
|
|
|
2020-07-20 16:57:03 -04:00
|
|
|
# Help Command
|
|
|
|
```
|
|
|
|
Public Only
|
|
|
|
-----------
|
2020-07-20 20:26:26 -04:00
|
|
|
help - Displays commands.
|
2020-07-20 16:57:03 -04:00
|
|
|
ping - Pong!
|
2020-07-20 20:26:26 -04:00
|
|
|
git - Links to the source repo.
|
2020-07-22 20:05:19 -04:00
|
|
|
playing - Tells you what it's playing at the moment.
|
2020-07-20 20:26:26 -04:00
|
|
|
about - About the bot.
|
2020-07-20 16:57:03 -04:00
|
|
|
|
|
|
|
Bot Owner Only
|
|
|
|
--------------
|
2020-07-20 20:26:26 -04:00
|
|
|
join - Joins voice chat.
|
2020-07-22 20:19:45 -04:00
|
|
|
resume - Resumes music.
|
|
|
|
pause - Pauses music.
|
2020-07-20 20:26:26 -04:00
|
|
|
skip - Skips the audio track.
|
|
|
|
leave - Leaves voice chat.
|
|
|
|
stop - Stops bot.
|
2020-07-20 17:17:08 -04:00
|
|
|
```
|