Skip to content

Discord bot to play youtube audio, music, etc

Notifications You must be signed in to change notification settings

Nanashii76/youBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Music Bot (v1)!!!!!

Bot Logo

Image reference

Overview

This discord bot plays, adds, skips, pauses, resumes, and stops music in a Discord voice channel. It uses the YouTube API to fetch video URLs and @discordjs/voice for audio handling.

Requirements

  • Node.js
  • Node.js
  • discord.js library
  • -@discordjs/voice library
  • googleapis library
  • @distube/ytdl-core library
  • Environment variables: DISCORD_BOT_TOKEN, YOUTUBE_API_KEY

Setup

  1. Clone the respository
git clone https://github.com/Nanashii76/youBot
  1. Install the dependences
npm install
  1. Create a .env int the root directory
DISCORD_BOT_TOKEN=your-discord-bot-token 
YOUTUBE_API_KEY=your-youtube-api-key
  1. Run the bot
node index.js

Commands

  • !play <URL or search query>: Play a song or playlist.
  • !add <URL or search query>: Add a song to the queue.
  • !skip: Skip the current song.
  • !pause: Pause the current song.
  • !resume: Resume a paused song.
  • !stop: Stop the current song and clear the queue.

About

Discord bot to play youtube audio, music, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published