ZeroDiscord / EconomyBot

Economy bot for discord easy to deploy written in discord.js v12.3.1
Other
158 stars 214 forks source link

TypeError: Eco.Manager is not a constructor #24

Closed nounouthereal closed 2 years ago

nounouthereal commented 2 years ago
/Users/nouhame/Bot_des_cerisiers/Js/economy/index.js:7
client.eco = new Eco.Manager(); // quick.eco
             ^

TypeError: Eco.Manager is not a constructor
    at Object.<anonymous> (/Users/nouhame/Bot_des_cerisiers/Js/economy/index.js:7:14)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155: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:77:12)
    at node:internal/main/run_main_module:17:47
nouhame@MacBook-Pro-de-PASQUIER economy % 
nounouthereal commented 2 years ago

Here is the code:

const Discord = require("discord.js");
const { Intents } = require('discord.js');
const myIntents = new Intents();
myIntents.add(32767);
 const client = new Discord.Client({ disableMentions: 'everyone', intents: myIntents });
const Eco = require("quick.eco");
client.eco = new Eco.Manager() // quick.eco
client.db = Eco.db; // quick.db
client.config = require("./botConfig");
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();
nounouthereal commented 2 years ago

@ZeroDiscord can you help me pls

nounouthereal commented 2 years ago

it was just an import error