Ratismal / UNO

An uno discord bot
70 stars 36 forks source link

error starting bot #28

Closed Yuinoshi closed 2 years ago

Yuinoshi commented 2 years ago

help me to fix this

PS C:\UNO-master\UNO-master> node index.js
C:\UNO-master\UNO-master\src\Spawner\index.js:11
    this.max = config.shards.max;
                             ^

TypeError: Cannot read property 'max' of undefined
    at new Spawner (C:\UNO-master\UNO-master\src\Spawner\index.js:11:30)
    at new Client (C:\UNO-master\UNO-master\src\index.js:8:20)
    at Object.<anonymous> (C:\UNO-master\UNO-master\src\index.js:15:16)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (C:\UNO-master\UNO-master\index.js:1:1)
legouju commented 2 years ago

same having this issue berh

also, how should the config.json be laid out xd

Ratismal commented 2 years ago

Please refer to the section about selfhosting in the readme.

Selfhosting

You may selfhost (AKA run your own instance of) this bot under the following circumstances:

Yuinoshi commented 2 years ago

oh okay