Skip to content

Skyzser/discordMusicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordMusicBot

Description

A music bot developed with JavaScript using the Discord API Library, Discord.js, and the YouTube API. This bot allows you to play music in a voice channel by querying through user input.

Features

  • Full music functionality: Play, Pause, Skip.
  • Other minor commands, such as kicking a user.
  • For full list of commands:
    • Type !help in a channel while the bot is running.

Technology

  • JavaScript
  • Node.js

Setup Guide

These instructions will help you set up the project on your local machine for running your own bot.

Prerequisites

Before you begin, ensure you have the following prerequisites:

Installation

  • Clone the repository: git clone https://github.com/Skyzser/discordMusicBot.git
  • Navigate to the project directory: cd discordMusicBot
  • Install all dependencies: npm install
  • Create a .env file in your project directory to store the Discord Bot Token and YouTube API Key:
BOT_TOKEN=<YOUR_DISCORD_BOT_TOKEN>
YT_API_KEY=<YOUR_YOUTUBE_API_KEY>

Usage

There are two ways you can run the bot (need to be in the main project directory):

  • First method:
    • Type src/node main.js on the terminal to start running the bot.
  • Second method:
    • Type npm run dev on the terminal to start running the bot.
      • You will most likely need Nodemon installed to run the bot using this script command (or just create a new script command).

About

A music bot developed with Javascript using the Discord API Library, Discord.js, and the YouTube API. This bot allows you to play music in a voice channel by querying through user input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors