garlic-team / musicbot Goto Github PK
View Code? Open in Web Editor NEWDiscord Music Bot using discord.js, gcommands
Discord Music Bot using discord.js, gcommands
https://srcshare.io/?id=6181ee25c2aa7a2b2aa8cc31
I have an error this code
in package.json
name : "Music bot....."
Capitals are invalid characters.
Please change the name to lower caps.
Note : I could have made a pull request but it ain't workin for me :/
So im having this error right now in replit
/home/runner/MusicBot/node_modules/gcommands/src/base/GCommandsClient.js:25
if (!options.loader?.cmdDir) throw new GError('[DEFAULT OPTIONS]', 'You must specify the cmdDir');
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/runner/MusicBot/node_modules/gcommands/src/index.js:5:22)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
I cannot seem to understand what is this error because i never seen it before
This error appears when you run the bot.
TypeError: Cannot read property 'slash' of undefined
at new GCommands (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\gcommands\src\base\GCommands.js:30:37)
at Client. (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\index.js:55:27)
at Client.emit (node:events:394:28)
at WebSocketManager.triggerClientReady (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:415:10)
at WebSocketShard. (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:197:14)
at WebSocketShard.emit (node:events:394:28)
at WebSocketShard.checkReady (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:475:12)
at WebSocketShard.onPacket (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:447:16)
at WebSocketShard.onMessage (C:\Users\ham68\OneDrive\바탕 화면\MusicBot-master (3)\MusicBot-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
This bot is still on GCommand v5 and Discord.js v12, so it is waiting to be rewritten for v7, v13. If you want to use it in the meantime, download the old version of gcommands 5.2.5 npm i [email protected]
title says it all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.