Tomato6966 / Multipurpose-discord-bot

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.
https://milrato.com
MIT License
571 stars 601 forks source link

Bug report #114

Open LeviAckerman1234 opened 2 years ago

LeviAckerman1234 commented 2 years ago

/Users/myname/Applications/visual/Multipurpose-discord-bot/slashCommands/.DS_Store:1

SyntaxError: Invalid or unexpected token at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1031:15) at Module._compile (node:internal/modules/cjs/loader:1065:27) 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 Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at /Users/myna,e/Applications/visual/Multipurpose-discord-bot/handlers/slashCommands.js:104:16 at Array.forEach ()

getting this error the bot is online n only responds to being pinged no commands are responding but the bot stays online please help me

LeviAckerman1234 commented 2 years ago

can anyone help?

LeviAckerman1234 commented 2 years ago

can anyone help me?

Rocky-pup commented 2 years ago

idk, i haven't problem with it

LeviAckerman1234 commented 2 years ago

what can i do tho

LeviAckerman1234 commented 2 years ago

i also get this [x] :: Now loading the Commands ... Error: ENOTDIR: not a directory, scandir './commands/.DS_Store/' at readdirSync (node:fs:1390:3) at /Users/myname/Applications/visual/Multipurpose-discord-bot/handlers/command.js:14:24 at Array.forEach () at module.exports (/Users/myname/Applications/visual/Multipurpose-discord-bot/handlers/command.js:13:32) at /Users/myname/Applications/visual/Multipurpose-discord-bot/index.js:123:43 at Array.forEach () at requirehandlers (/Users/myname/Applications/visual/Multipurpose-discord-bot/index.js:122:102) at Object. (/Users/myname/Applications/visual/Multipurpose-discord-bot/index.js:141:3) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) [x] :: LOADED THE 0 COMMANDS after: 95ms

Rocky-pup commented 2 years ago

Your code like this? image

Rocky-pup commented 2 years ago

bc of this error bot not loading commands

Rocky-pup commented 2 years ago

or your folder "commands" contains 1 extra file, .DS_Store, commands folder need to be like this, without hidden files: image

Rocky-pup commented 2 years ago

DS_STORE extension stores folder view settings in Mac OS X, includes information about folder window location, window size, view options... Try delete this, it hidden, but JS see everything

Rocky-pup commented 2 years ago

it's your local bug, so you can close issue

hotsu0p commented 8 months ago

I am getting the same issue