Skip to content

Discord Music Bot Build With Discord.js Working On Glitch.com

License

Notifications You must be signed in to change notification settings

CustomTag/SpeakerBos

Repository files navigation

Infinity (Discord Music Bot)

Infinity is a Discord Music Bot built with discord.js & uses Command Handler from discordjs.guide

Requirements

  1. Discord Bot Token Guide
  2. YouTube Data API v3 Key Guide
  3. Node.js v12.0.0 or newer

Installation

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.

Configuration

Create a file named .env on

TOKEN=*********************************************************
YOUTUBE_API_KEY=****************************************
MUSIC_CHANNEL_ID=12345678900000000

Using the bot via Glitch

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.

  1. Getting the bot's token: Discord developers page > Create an application > Bot > Build a Bot > Token > Copy
  2. Getting Youtube API token:
  3. Setting up Glitch:
    • Register to Glitch with Github
    • Import my repository (Swar1ey/Discord-Music-Bot)
    • Setup your .env file as described above
  4. 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
  5. Invite your Discord bot!

Features & Commands

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 reactions

Contributing

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/evobot.git
  3. Create your feature branch: git checkout -b my-new-feature
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request

About

Discord Music Bot Build With Discord.js Working On Glitch.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published