Discord Music bot supported with Slash Commands and Requests tracking. It has clean interface and is easy to run!
Also includes the main.py
template that I use in my personal bot.
- install Python
git clone https://github.com/freezpmark/music-discord-bot
cd music-discord-bot
pip install -r requirements.txt
- create credentials for your Google Sheets credentials in json (tutorial for creating it here)
- create
.env
file in the root directory and set these variables:
GUILD_ID=133713371337133713 # Your server ID
glados_TOKEN=ABCDEFGHIJKLMNOPRS # Your bot token
glados_ID=123456789012345678 # Your bot client ID
GOOGLE_CREDENTIALS={"type": "...", ...} # Your Google Sheets credendials in json
python main.py
There are also some optional variable settings you can set in config.json
:
{
"timezone": "Europe/Vienna",
"bots_settings": {
"glados": {
"activity": "/play",
"cog_blacklist": [],
"prefix": "?"
},
}
}
- enables searching and playing tracks from YouTube
- supports playing playlist or picking tracks from it
- real-time audio player that is being updated when a track starts playing
- button interactivity with the audio player
- track request tracking system integrated with google sheets
- track request summarization over certain periods of time
Click to View Commands
Name | Description | Options |
---|---|---|
⏸️ | Pauses the current song | |
Resumes the current song | ||
⏭️ | Skips the current song | |
🔁 | Loops the queue | |
🔂 | Loops currently playing track | |
🔀 | Shuffles the queue of songs that weren't yet played | |
play |
Searches and plays/adds the track into queue | search : search prompt / URL |
playlist |
Allows you to pick tracks from 25 last songs in the playlist | playlist_url : url of playlist |
search |
Gives you list of tracks to choose from the search prompt | search : search prompt |
seek |
Gets into certain timestamp in currently playing track | second : timestamp in seconds |
jump |
Skips to a specific song in the queue | index : index number in the queue |
remove |
Removes a song from the queue | index : index number in the queue |
volume |
Changes the volume (10% is default) | volume : from 1 to 100 (in %) |
clear |
Clears the queue | song : The song number |
history |
Saves all requests into google sheets log | (use prefix) limit : amount of msgs to take into account |
create_stats |
Creates stats out from the requests log | (use prefix) |
(There will be a gif file added soon that will showcase the usage)
Also, the app has not yet been fully tested and there are still a few TODOs left to do.