Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quicksilveryt/discord-music-bot
A music bot
https://github.com/quicksilveryt/discord-music-bot
Last synced: 8 days ago
JSON representation
A music bot
- Host: GitHub
- URL: https://github.com/quicksilveryt/discord-music-bot
- Owner: QuicksilverYT
- License: apache-2.0
- Created: 2022-04-19T12:25:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-19T12:28:30.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T05:27:23.606Z (2 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord.py Music Bot
A simple music bot written in discord.py using youtube-dl. Use this as an example or a base for your own bot and extend it as you want.
### Pre-Setup
If you don't already have a discord bot, click [here](https://discordapp.com/developers/), accept any prompts then click "New Application" at the top right of the screen. Enter the name of your bot then click accept. Click on Bot from the panel from the left, then click "Add Bot." When the prompt appears, click "Yes, do it!"
![Left panel](https://i.imgur.com/hECJYWK.png)Then, click copy under token to get your bot's token. Your bot's icon can also be changed by uploading an image.
![Bot token area](https://i.imgur.com/da0ktMC.png)
### Setup
Create a file named `.env`
Add `TOKEN=`
Your .env file should look something like this:
```
TOKEN=```
# Author
made by [itzQuicksilver](https://github.com/QuicksilverYT)
### UptimeTo keep your bot alive you need to make this repl into a webserver. The way you do that is that you `import keep_alive` (file included this repl) and call it `keep_alive()`.
Now that this repl is a server, all you have to do to keep your bot up is setup something to ping the site your bot made every 5 minutes or so.
Go to [uptimerobot.com](https://uptimerobot.com/) and create an accout if you dont have one. After verifying your account, click "Add New Monitor".
+ For Monitor Type select "HTTP(s)"
+ In Friendly Name put the name of your bot
+ For your url, put the url of the website made for your repl.
+ Select any alert contacts you want, then click "Create Monitor"
![Uptime robot example](https://i.imgur.com/Qd9LXEy.png)Your bot should now be good to go, with near 100% uptime.