A simple discord music bot using the DiscordGo library.
- go compiler
- gcc compiler
- ffmpeg.exe
- ffprobe.exe
- youtube-dl.exe
- python
- Clone repository
- Put
ffmpeg.exe
in the directory - Put
ffprobe.exe
in the directory - Put
youtube-dl.exe
in the directory - Create the
config.json
file and place this inside of the directory, following the template below - Create a
music
directory and place music files in here (any supported by ffmpeg) - Run
go build ./src/main
in the cloned directory - Execute
main.exe
Create a config.json
file in the project root using this template:
{
"bot_token": "Bot your-bot-token",
"owner_id": "your user id",
"use_sharding": false,
"shard_id": 0,
"shard_count": 1
}
Command | Description |
---|---|
music help | shows all available commands |
music join | joins your current voice channel (must be in a voice channel) |
music play [file] | plays a music file |
music stop | stops playing the current song |
music leave | leaves the voice channel |
music eval [code] | runs javascript (bot owner only) |
music info | shows bot info and statistics |
music stopbot | stops the bot (bot owner only) |
This is not for public use. If you don't know GO I do not recommend using this and I will not provide support for that.
Go ahead, just bear in mind I've only been doing go for a few days.
Developers of discordgo <3
https://github.com/iopred/bruxism for stats command