Infinity is a Discord Music Bot built with discord.js & uses Command Handler from discordjs.guide
git clone https://github.com/Swar1ey/Discord-Music-Bot.git
cd evobot
npm install
After installation finishes you can use node index.js
to start the bot.
Create a file named .env on
TOKEN=*********************************************************
YOUTUBE_API_KEY=****************************************
MUSIC_CHANNEL_ID=12345678900000000
Discord started to ban Glitch IPs from using it's bot APIs. So if your bot doesn't start and without any error then you should try to create project until you can get a project where the bot works properly.
- Getting the bot's token: Discord developers page > Create an application > Bot > Build a Bot > Token > Copy
- Getting Youtube API token:
- Youtube Data API V3 > Enable API
- Google API Dashboard > Create credentials > API key > Copy
- Setting up Glitch:
- Register to Glitch with Github
- Import my repository (
Swar1ey/Discord-Music-Bot
) - Setup your
.env
file as described above
- Making the page stay awake:
- Click on show button > In a New Window > Copy the url
- Go to awake.glitch.me and submit your url
- Invite your Discord bot!
Note: The default prefix is 'Set your Prefix that you want! in Config.js'
- 🎶 Play music from YouTube via url
!play https://www.youtube.com/watch?v=GLvohMXgcBo
- 🔎 Play music from YouTube via search query
!play under the bridge red hot chili peppers
- 📃 Play youtube playlists via url
!playlist https://www.youtube.com/watch?v=YlUKcNNmywk&list=PL5RNCwK3GIO13SR_o57bGJCEmqFAwq82c
- 🔎 Play youtube playlists via search query
!playlist linkin park meteora
- Command Handler from discordjs.guide
- Queue system (/queue)
- Loop / Repeat (/loop)
- Volume control (/volume)
- Pause (/pause)
- Resume (/resume)
- Skip (/skip)
- Media Controls via Reactions
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/evobot.git
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request