A super basic music bot for Discord.
- Python 82.4%
- Dockerfile 13.2%
- Shell 4.4%
|
|
||
|---|---|---|
| bot.py | ||
| config.py | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
| requirements_fresh.txt | ||
| run.sh | ||
discord-music-bot
What?
A bare-bones Discord bot for playing music in voice channels.
Commands:
| Command | Description |
|---|---|
]] <youtube link> |
Plays the video |
]] skip |
Skips the current song |
Why?
Why not?
How?
- Create a new Discord application at Discord's developer portal.
- Create a bot user for your application and get the bot token (not the client secret).
- Create an OAuth URL for your bot with scope as "bot" and voice-related permissions. (Redirect URL is not necessary)
- Enable "Developer Mode" in Appearance settings in the Discord application. Right click on the voice channel you want the bot to join and copy its channel ID.
- Edit
config.py.DISCORD_KEYis the bot token andDISCORD_CHANNELis the channel ID. - Clone this repository.
- Run:
docker built -t musicbot .from inside this repository. docker run musicbotwill start your bot.- You can use the
-doption ondocker runto make it run as a background process.
Things to do
- Proper queue management
- Permissions system
- Search and suggestions