BestGamersH / Multipurpose-Discord-Bot

The bot that has everything! - Leveling • Music • Memes • Moderation • nsfw • Logging • Tickets • Reaction Roles • Fun • Anime • Applications • Much More
MIT License
104 stars 41 forks source link

Bug report #64

Open Nonstopgaming75 opened 2 months ago

Nonstopgaming75 commented 2 months ago

What's your nodejs Version.

18

What's the version you downloaded the bot?

latest

Desktop (please complete the following information):

  • OS: ubuntu
  • Version 22.04

Describe the bug

When starting the bot it gives errors because of the code.

To Reproduce

Steps to reproduce the behavior e.g:

  1. npm start
  2. See error

Expected behavior

no errors

Additional context, text and screenshots!

Error: Cannot find module '/home/vboxuser/Multipurpose-Discord-Bot-1/data/quotes.json' Require stack:

  • /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/commands/💸 Economy/stock.js
  • /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js
  • /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) at Module._load (node:internal/modules/cjs/loader:981:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at Object. (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/commands/💸 Economy/stock.js:4:16) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:17:22 at Array.forEach () at module.exports (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:13:32) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:101:43 at Array.forEach () /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/commands/🔰 Info/perms.js:37 const { Permissions } = require('discord.js'); ^

SyntaxError: Identifier 'Permissions' has already been declared at internalCompileFunction (node:internal/vm:76:18) at wrapSafe (node:internal/modules/cjs/loader:1283:20) at Module._compile (node:internal/modules/cjs/loader:1328:27) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:17:22 at Array.forEach () at module.exports (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:13:32) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:101:43 at Array.forEach () at requirehandlers (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:100:102) at Object. (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:119:3) at Module._compile (node:internal/modules/cjs/loader:1364:14) Error loading quotes: Cannot find module '/home/vboxuser/Multipurpose-Discord-Bot-1/data/quotes.json' Require stack:

SyntaxError: Identifier 'Permissions' has already been declared at internalCompileFunction (node:internal/vm:76:18) at wrapSafe (node:internal/modules/cjs/loader:1283:20) at Module._compile (node:internal/modules/cjs/loader:1328:27) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:17:22 at Array.forEach () at module.exports (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:13:32) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:101:43 at Array.forEach () at requirehandlers (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:100:102) at Object. (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:119:3) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/commands/🚫 Administration/createrole.js:43 const { Permissions } = require('discord.js'); ^

SyntaxError: Identifier 'Permissions' has already been declared at internalCompileFunction (node:internal/vm:76:18) at wrapSafe (node:internal/modules/cjs/loader:1283:20) at Module._compile (node:internal/modules/cjs/loader:1328:27) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:17:22 at Array.forEach () at module.exports (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/handlers/command.js:13:32) at /home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:101:43 at Array.forEach () at requirehandlers (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:100:102) at Object. (/home/ubuntu/bot/bottino/Multipurpose-Discord-Bot/index.js:119:3) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49