Need help with discord-bot?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

TannerGabriel
174 Stars 138 Forks MIT License 48 Commits 3 Opened issues

Description

Simple discord bot to play music and manage your server

Services available

!
?

Need anything else?

Contributors list

# 130,847
HTML
gRPC
golang
music-b...
26 commits
# 92
netlify
TypeScr...
GraphQL
angular...
4 commits
# 225,282
C
Objecti...
Linux
music-b...
1 commit

Discord Music bot

A simple discord bot that helps you manage your server by providing useful commands like playing music or deleting text messages.

You can find the tutorial about building a discord music bot here.

Table of content

Features

  • Ban
  • Userinfo
  • Play music
  • Skip songs
  • Stop music
  • Purge text messages

Requirements

Getting started

First, make sure you have all the required tools installed on your local machine then continue with these steps.

Installation

# Clone the repository
git clone https://github.com/TannerGabriel/discord-bot.git

Enter into the directory

cd discord-bot/

Install the dependencies

npm install

Configuration

After cloning the project and installing all dependencies, you need to add your Discord API token in the config.json file.

Starting the application

node index.js

Starting the application using Docker

# Build the image
docker build --tag discordbot .

Run the image

docker run -d discordbot

Common errors

Here is a list of common errors and how you can fix them.

Dependencies aren't up to date

The packages used in this repository get updated often, especially the ytdl-core package. That is why it is always worth a try updating those if you get an error like

invalid URL: undefined
or when the bot crashes when running the play command.
npm install [email protected]

FFMPEG is not installed on the machine running the bot

The

play
command requires FFMPEG to be installed on the machine that is running the bot. You can download it on the official FFMPEG website. Note: This isn't relevant if you use the Dockerfile because it will install FFMPEG inside of the container.

Author

Gabriel Tanner

Support me

Buy Me A Coffee

License

This project is licensed under the MIT License - see the LICENSE.md file for details

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.