d-zone-org / d-zone

An ambient life simulation driven by user activity within a Discord server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

config.get is not a function

TheConceptionist opened this issue · comments

When trying to use npm start or node index.js, it throws an error.

D:\D-Zone\node_modules\d-zone\script\inbox.js:11
    var bot = new Discord.Client({ autorun: true, token: config.get('token') });
                                                                ^

TypeError: config.get is not a function
    at new Inbox (D:\D-Zone\node_modules\d-zone\script\inbox.js:11:65)
    at Object.<anonymous> (D:\D-Zone\node_modules\d-zone\index.js:10:13)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)