beCoditive / Max-Bot

Max Bot is an open-source bot made in node-js with discord-js. It Has Commands from fun to moderator.
https://blog.becoditive.xyz
GNU Lesser General Public License v3.0
30 stars 24 forks source link

already loaded trivia #30

Open JamesTheFlash22 opened 5 months ago

JamesTheFlash22 commented 5 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'BotClient.js'
  2. Click on 'the file'
  3. Scroll down to 'to the load of commands'
  4. See error

Expected behavior I have this error trying loading the commands Starting to load commands... /home/container/node_modules/discord-akairo/src/struct/AkairoHandler.js:137 if (this.modules.has(mod.id)) throw new AkairoError('ALREADY_LOADED', this.classToHandle.name, mod.id); ^ AkairoError [ALREADY_LOADED]: Command 'trivia' is already loaded at CommandHandler.load (/home/container/node_modules/discord-akairo/src/struct/AkairoHandler.js:137:45) at CommandHandler.loadAll (/home/container/node_modules/discord-akairo/src/struct/AkairoHandler.js:156:40) at BotClient._init (/home/container/client/BotClient.js:42:29) at BotClient.start (/home/container/client/BotClient.js:58:20) at Object. (/home/container/index.js:12:8) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) { code: 'ALREADY_LOADED' } Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.