Giter Site home page Giter Site logo

tomato6966 / musicium Goto Github PK

View Code? Open in Web Editor NEW
299.0 17.0 314.0 543 KB

An advanced Discord Music Bot with a Dashboard, using distube.js.org having an interactive button & menu system and many features! Supported Features: Spotify • YouTube • SoundCloud • Live Stream • Audio Filtering • DJ Roles • Autoplay • Autoresume • Dashboard + Live Queue • ...

Home Page: https://musicium.eu

License: GNU General Public License v2.0

JavaScript 90.90% CSS 1.19% EJS 7.90%
music playlist youtube radio radiostation yt soundcloud discordjs ytdl bassboost

musicium's Introduction

Musicium

An advanced Discord Music Bot with a Dashboard, using distube.js.org having an interactive button & menu system and many features! Supported Features: Spotify • YouTube • SoundCloud • Live Stream • Audio Filtering • DJ Roles • Autoplay • Autoresume • Dashboard • ...


🦾 Replit Hosting Tutorial

💪 General Hosting Tutorial (VPS) + Hosting-Bug Fixes


Features:

✓ Dashboard with Live Queue Control System

✓ Auto resume

✓ Setupable Music Request System-Channel

✓ Crips and High Quality, thanks to FFMPEG based Audio streaming

✓ A ton of Music-based Commands, including over 30 Filters!

✓ Default Music values like: volume, filter, equalizer, autoplay, ...

✓ DJ-System

✓ Stable & Up to date with discord.js v13

✓ Suport 1700 music sources + Stage & Thread Channels

✓ Works on Replit.com and any vps

Installation Guide (Hosting)

🖖 Repl.it Fork

  • 0. have node.js v16.6 or higher

  • 1. have ffmpeg and at least 100mb Ram

  • 2. in ./botconfig/config.json Adjust the BOT TOKEN and PREFIX NOTE: You don't need the ksoftapi! It's disabled!

  • 3. in ./botconfig/settings.json Adjust the DEFAULT MESSAGES AND OTHER SETTINGS

  • 4. in ./botconfig/embed.json Adjust the EMBED SETTINGS

  • 5. in ./dashboard/settings.json Adjust the parameters!

  • 6. npm install to Install the depedences If you get PYTHON ERRORS Try this: npm install --python=python2.7

  • 7. node . to start the Bot


Slash Commands Information

To add a Subcommand create a Folder in ./slashCommands

Make sure to add it's Settings in ./botconfig/config.json

You can't have more folder then 1 Layer

If u want to create "normal" Slash commands create the files just in ./slashCommands



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!

musicium's People

Contributors

bitsofabyte avatar concara3443 avatar nxvvvv avatar reko7 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musicium's Issues

update

could you update the bot to discord v13?

1 Typo and 1 Bug

Typo:
In line 219 of radiostations.json, there is an extra -
Screenshot_101
It should be:
"Radio-Ayeneh http://83.251.229.97/streampath1.mp3/;",
so the embed does not shows the link of radio directly.

Bug:
The length of requested radio exceeds 2048 chracters. Maybe not include links in requested radio stations. :feelsInvisibleman:

Error

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'colors'
Require stack:

  • C:\Users\marci\OneDrive\Documentos\Bots Pastas\Musica-main\index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (C:\Users\marci\OneDrive\Documentos\Bots Pastas\Musica-main\index.js:5:16)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\marci\OneDrive\Documentos\Bots Pastas\Musica-main\index.js'
    ]
    }

autoplay command still not work

Hello, tomato. I got the problem that I host on vps not work with autoplay command. Can you provide some solution to fix it?

Spotify Playlist

Hi, can you add a Spotify playlist? To read the playlist From Spotify. Thank

auto disconect

When i put link "lofi livestreaming" it disconected for no reason

Remove

image
As You Can See Pure Love Was In Number 1 Position And One Day Was In Number 2. When I Used Remove 2 (One Day) Command Then The Bot Removed Number 1 (Pure Love).

/slash commands doesnt work

None of the 3 slash commands work,

Btw it doesnt support spotify playlist, as it requires client id and secret

Npm installation error in vps

root@ip-123123:/home/ubuntu/real# npm i
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/distubejs/prism-media.git
npm ERR! command-line line 0: unsupported option "accept-new".
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:

Any solution to solve this

<rejected> ReferenceError: getTracks is not defined | Spotify Album, Tracks problem

Spotify Album, Tracks problem

=== UNHANDLED REJECTION ===
Promise: Promise {
ReferenceError: getTracks is not defined
at Object.run (/app/commands/MUSIC COMMANDS/play.js:79:19)
at Client. (/app/index.js:163:21)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
} Reason: ReferenceError: getTracks is not defined
at Object.run (/app/commands/MUSIC COMMANDS/play.js:79:19)
at Client. (/app/index.js:163:21)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/rbd/pnpm-volume/83956b93-5712-4e49-85b1-487f9ef6b96a/node_modules/discord.js/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
=== UNHANDLED REJECTION ===

TypeError: client.settings.get(...).map is not a function

var djs = client.settings.get(newQueue.id, `djroles`).map(r => `<@&${r}>`);

TypeError: client.settings.get(...).map is not a function
    at receiveQueueData (home\runner\Musicium-main\handlers\distubeEvent.js:528:59)
    at DisTube.<anonymous> (home\runner\Musicium-main\handlers\distubeEvent.js:36:22)
    at DisTube.emit (node:events:394:28)
    at QueueManager.emit (home\runner\Musicium-main\node_modules\distube\dist\core\DisTubeBase.js:23:29)
    at QueueManager._handleSongFinish (home\runner\Musicium-main\node_modules\distube\dist\core\manager\QueueManager.js:115:22)    
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
 [antiCrash] :: Uncaught Exception/Catch (MONITOR)

When I try to play any song

MinigetError: play(yalgaar) encountered:
Status code: 410
at ClientRequest. (/home/runner/Musicium-or-Best-Music-Bot-on-Replit/node_modules/miniget/dist/index.js:211:27)
at Object.onceWrapper (events.js:483:26)
at ClientRequest.emit (events.js:376:20)
at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:515:22)
at TLSSocket.emit (events.js:376:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at TLSSocket.Readable.push (internal/streams/readable.js:223:10) {
statusCode: 410
}

Autoplay command

The autoplay command enbled but not play the music when the music end. It just left the channel. but the autoplay enbled.

radio

any reason the radio doesn't work? | "UNHANDLED REJECTION"

OAuth2Strategy

i am getting error :

[antiCrash] :: Uncaught Exception/Catch (MONITOR)
TypeError: OAuth2Strategy requires a clientID option
at Strategy.OAuth2Strategy (/home/runner/Musicium-1/node_modules/passport-oauth2/lib/strategy.js:87:34)
at new Strategy (/home/runner/Musicium-1/node_modules/passport-discord/lib/strategy.js:49:20)
at module.exports (/home/runner/Musicium-1/dashboard/index.js:35:18)

activity status

image

i did change client.user.setActivity("ok", { type: "PLAYING" }); but they still there where i can change them?

Lavalink had a error

dis
I am trying to host my bot in heroku and I always get this error Info: Lavalink: Node Main had an error: Unable to connect after 5 attempts How do I at least change the lavalink server?

sos

(node:93632) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Emoji
at RequestHandler.execute (C:\Users\user\Downloads\Musicium-main\Musicium-main\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (C:\Users\user\Downloads\Musicium-main\Musicium-main\node_modules\discord.js\src\rest\RequestHandler.js:39:14)
(Use node --trace-warnings ... to show where the warning was created)
(node:93632) 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:93632) [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.

TypeError: client.settings.get(...).map is not a function

var djs = client.settings.get(newQueue.id, `djroles`).map(r => `<@&${r}>`);

TypeError: client.settings.get(...).map is not a function
    at Object.run (home\runner\Musicium-main\commands\Queue\status.js:68:59)
    at module.exports (home\runner\Musicium-main\events\guild\messageCreate.js:135:19)
    at Client.emit (node:events:394:28)
    at MessageCreateAction.handle (home\runner\Musicium-main\node_modules\discord.js\src\client\actions\MessageCreate.js:23:14)    
    at Object.module.exports [as MESSAGE_CREATE] (home\runner\Musicium-main\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (home\runner\Musicium-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:345:31)
    at WebSocketShard.onPacket (home\runner\Musicium-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:443:22)   
    at WebSocketShard.onMessage (home\runner\Musicium-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:300:10)  
    at WebSocket.onMessage (home\runner\Musicium-main\node_modules\ws\lib\event-target.js:132:16)
    at WebSocket.emit (node:events:394:28)

Cannot read property 'toLowerCase' of undefined

When i run the bot there is this error: TypeError: Cannot read property 'toLowerCase' of undefined
at new SCDL (C:\Users\Gabry\Desktop\Musicium-5.0-filters-master\node_modules\←[4msoundcloud-downloader←[24m\dist\index.js:92:56)
at Object. (C:\Users\Gabry\Desktop\Musicium-5.0-filters-master\node_modules\←[4msoundcloud-downloader←[24m\dist\index.js:369:12)
←[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
←[90m at require (internal/modules/cjs/helpers.js:88:18)←[39m
at Object. (C:\Users\Gabry\Desktop\Musicium-5.0-filters-master\node_modules\←[4msoundcloud-downloader←[24m\index.js:1:14)
←[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m

error after discord authorisation

after i authorise discord i get this error:
TokenError
at Strategy.OAuth2Strategy.parseErrorResponse (/home/runner/fate/node_modules/passport-oauth2/lib/strategy.js:372:12)
at Strategy.OAuth2Strategy._createOAuthError (/home/runner/fate/node_modules/passport-oauth2/lib/strategy.js:419:16)
at /home/runner/fate/node_modules/passport-oauth2/lib/strategy.js:177:45
at /home/runner/fate/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/home/runner/fate/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage. (/home/runner/fate/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (node:events:406:35)
at endReadableNT (node:internal/streams/readable:1331:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

Usercount issue

Here is the code: it just shows k User | 2 server // the server one works, but the user count is not.
user

for (let i = 0; i < guilds.length; i++) {
usercount += Number(client.guilds.cache.get(guilds[i]).memberCount);
}
usercount *= 10;
usercount = usercount.toString().slice(3)
stateswitch = !stateswitch; //change state
if (stateswitch) client.user.setActivity(${config.prefix}help | musicium.eu, {
type: "PLAYING"
});
else client.user.setActivity(${usercount}k User | ${client.guilds.cache.size} Server, {
type: "PLAYING"
});
}, 5000); //5 second delay

Problem

The bot info command not working , slash command also not working and the play command ( the embed ) which shows which song is playing , filter and duration not showing right information and not refreshing

Info

Can i get to know what is the use of DJ role in Musicium cause there is no description given.

A random question.

does it stay in the music channel 24/7?
i am not talking about hosting but like when you play music in a channel and leave the channel, does the bot still stay there?

and fix Dj-Roles in dashboard not only dj roles command

TypeError: client.settings.get(...).map is not a function
at receiveQueueData (/home/runner//handlers/distubeEvent.js:528:59)
at DisTube. (/home/runner/
/handlers/distubeEvent.js:36:22)
at DisTube.emit (node:events:394:28)
at DisTube.playVoiceChannel (/home/runner//node_modules/distube/dist/DisTube.js:203:34)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.run (/home/runner/
/commands/Music/play.js:90:5)

Karaoke

Every Single Filters Are Working Properly But Can You Check Karaoke? That's Not Working. Thanks!

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.