Coder Social home page Coder Social logo

tomato6966 / music-bot-with-filter Goto Github PK

View Code? Open in Web Editor NEW
67.0 3.0 45.0 78 KB

A Music bot made with discord-ytdl-core so you can define filters!

License: GNU General Public License v3.0

JavaScript 99.80% Batchfile 0.20%
discord-ytdl-core music discordjs ytdl youtube yt soundcloud fun filters bassboost

music-bot-with-filter's Introduction

Music Bot with Filters | Musicium

PRs Welcome Maintenance Ask Me Anything ! Support Server

An advanced Music Bot, with 30+ Radio Stations, with capability of filters, like Bassboost, Nightcore, etc. and reaction interactivity. Based on ytdl-core with discord.js Guide Handler. With ideas from eritislami

You can always invite the Bot to your Server if you wish, its public and you can use it!

Commands:

  • filter <FILTERNAME> -- Set Audio - Effects
  • loop -- Toggle music loop
  • lyrics -- Get lyrics for the currently playing song
  • nowplaying -- Show current song
  • pause -- Pause the currently playing music
  • play <TITEL | URL> -- Plays song from YouTube/Stream
  • queue -- Show the music queue and now playing
  • radio <RADIOSTATION>-- Play a Radiostation
  • remove -- Remove song from the queue
  • resume -- Resume currently playing music
  • search <TITEL | URL>-- Search and select videos to play
  • shuffle -- Shuffles the current Queue!
  • skip -- Skip the currently playing song
  • skipto <QUEUE NUM.> -- Skip to the selected queue number
  • stop -- Stops the music
  • volume <VOL. NUM.> -- Change volume
  • help [COMMAND] -- Gives you a list of all help Commands

NO API-KEY NEEDED! That's because it uses a scraper (youtube-sr)!

Installation | How to use the Bot

1. Install node.js v12 or higher

2. Install ffmpeg@latest

3. Download this repo and unzip it | or git clone it

4. Install all of the packages with npm install | the packages are npm install node.js @discordjs/opus discord.js ffmpeg-static figlet lyrics-finder string-progressbar ytdl-core discord-ytdl-core youtube-sr

5. start the bot with node index.js

This Bot uses standard emojis, so just downloading it and filling in the TOKEN will make the Bot work!

Usage - config.json

{
  "TOKEN": "",
  "PREFIX": "+",
}

It is important that you fill in every item of the JSON FILE! every emoji used in this BOT is a custom emoji, the emojis are listed down below as images, which you can download and upload to your server to use them. NOTE: you gotta change emoji.id to emoji.name if you use discord / unicode emojis! Soon a new Repo with standard emojis will be awailable for easy usages!

Video:

NOTE:

Make sure that you have installed FFmpeg, and added it to Systemenvironment variables (PATH)

If you are having errors/problems with starting delete the package.json file and do, before you install the packages npm init




SUPPORT ME AND MILRATO DEVELOPMENT

You can always Support me by inviting one of my own Discord Bots

2021's best Music Bot | Lava Music Musicium Music Bot Milrato Multi Bot

Credits

If consider using this Bot, make sure to credit me!

music-bot-with-filter's People

Contributors

nxvvvv avatar tomato6966 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

music-bot-with-filter's Issues

music bot auto disconnects

yeah i changed index.js in where bot auto leaves when not speaking and it auto disconnects now to i dnot know?

Now starting

๎บง npm start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-04-10T14_48_25_027Z-debug.log
exit status 1

Lyrics function not working

try {
      //use lyricsfinder
      lyrics = await lyricsFinder(queue.songs[0].title, "");
      //If no Lyrics define no lyrics
      if (!lyrics) lyrics = `No lyrics found for ${queue.songs[0].title}.`;
    } catch (error) {
      //catch any error
      console.log(error);
      lyrics = `No lyrics found for ${queue.songs[0].title}.`;
    }

Lyrics function not working I try to get error if it does. but nothing show me.

How to make bot online 24/7

Hello, I'm new to this bot. I'm sorry for my stupid question... How can I make the bot online for 24/7? I followed youtube instructions but none of them are compatible for this bot. Thank you.

Edit: I found out how now, but there is still a problem. I use uptimerobot to make it always online, but sometimes the bot got turned off automatically. Please help..

ffmpeg/aconv not found!

So Once I Install the Dependencies Using the setup.bat, it gives a error when it installed the ffmpeg-static package.

Suggestion

I want to ask you , do we need to add something in the code to keep the bot in voice channel 24/7

bug

(node:3593) UnhandledPromiseRejectionWarning: TypeError: createBar is not a function
at ReactionCollector. (/home/runner/LightgreenPositiveExabyte/include/play.js:225:51)
at ReactionCollector.emit (events.js:326:22)
at ReactionCollector.EventEmitter.emit (domain.js:483:12)
at ReactionCollector.handleCollect (/home/runner/LightgreenPositiveExabyte/node_modules/discord.js/src/structures/interfaces/Collector.js: 100:12)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3593) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3593) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Isuue

You tell me from where should i start. Lots and lots of bugs to fix. I tried and fixed few but now i'm leaving it.

Bot leave voice channel, when i want to play music

When i type !play [title] bot join to voice channel and leave immediately.

Console log:
Error: input stream: Status code: 429
at ClientRequest. (/home/container/node_modules/miniget/dist/index.js:150:31)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:602:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17)
at TLSSocket.socketOnData (_http_client.js:475:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:298:12)
at readableAddChunk (_stream_readable.js:273:9)
at TLSSocket.Readable.push (_stream_readable.js:214:10)

Bot join's then leaves when i do .play (song title)

When i try to tell the bot to .play song it just joins and leaves and I don't know why (is there a fix to this) it doesn't even show a error code ether which is weird. its shows the song i requested then once it leaves it says music queue ended.

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.