GithubHelp home page GithubHelp logo

hhy5277 / music-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeriodev/music-bot

0.0 1.0 0.0 159 KB

A complete code to download for a music bot. Using a module (discord-player).

License: GNU General Public License v3.0

JavaScript 100.00%

music-bot's Introduction

Music-bot

Migrating to v5...

Music-Bot has not been migrated to Discord Player v5 yet! It's on the way, feel free to add a star to this repository to show your support. In the meantime, you should use discord-music-bot. Please do not spam issues here as it should have probably been resolved in the new repo. Thanks.

A complete code to download for a music bot. Using a module (discord-player) ๐ŸŽง

Looking for a code for a music bot ? This fully open source code is made for your project !

If you need help with this project, to get support faster you can join the help server by just clicking here.

โšก Installation

Well, let's start by downloading the code. Go to the folder config then the file bot.js. For the bot to be able to start, please complete the file with your credentials as follows :

  • For emojis
emojis: {
    off: ':x:',
    error: ':warning:',
    queue: ':bar_chart:',
    music: ':musical_note:',
    success: ':white_check_mark:',
}
  • For configuration
discord: {
    token: 'TOKEN',
    prefix: 'PREFIX',
    activity: 'ACTIVITY',
}
  • token, the token of the bot available on the Discord Developers section.
  • prefix, the prefix that will be set to use the bot.
  • activity, the activity of the bot.

In the console, type npm install to install all dependencies.

  • To start the bot :
#With Node
node index.js
npm start #Indicated in package.json

#With pm2
pm2 start index.js --name "MusicBot"

All you have to do is turn on your bot !

๐ŸŽต Music commands

play <name/URL>, play music in a voice channel.
search <name>, open a panel to choose a music and then play it.
pause, pause the current music.
resume, puts the current music back on.
queue, see the next songs.
clear-queue, remove music in the queue.
shuffle, to mix the queue.
nowplaying, see music in progress.
loop, to enable or disable the repeat function.
volume <1 - 100>, change the volume.
skip, skip to next music.
stop, stop all music.
filter <filter>, add / remove filter.
w-filters, see filters.

๐Ÿ’ก General commands

ping, see the bot latency.
help, see the list of available commands.
debug, see number of voice connections.

๐Ÿ“ Utilities (to change the code)

Find all the functions available on the official code right here.

This is used with discord.js and discord-player.

music-bot's People

Contributors

androz2091 avatar swarwerth avatar y0rune avatar zeriodev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.