Closed ThisDudeBoy closed 3 years ago
Which command are you using to start the bot?
Your manager
And which config have you set in the controller part of the config.json file ?
{ "devToken": "MainTOKEN", "sentryDsn": "", "bot": { "dbPrefix": "im", "type": "regular", "embedColor": "00cbeb", "activity": { "status": "dnd", "message": "docs.invite-manager.co !", "type": "streaming", "url": "https://www.twitch.tv/arftnl" }, "links": { "add": "", "support": "", "website": "", "patreon": "" }, "dm": { "guild": "", "channel": "" }, "apiAuth": { "username": "", "password": "" }, "dblToken": null, "music": { "pollyUrl": "" } }, "rabbitmq": { "hostname": "localhost", "username": "guest", "password": "guest", "prefix": "" }, "databases": [ { "host": "IP", "port": 3306, "user": "root", "password": "rootpass", "range": { "from": 0, "to": 0 } }, { "host": "IP", "port": 3306, "user": "root", "password": "rootpass", "range": { "from": 1, "to": 1 } } ], "controller": { "botToken": "Second Token", "shardCount": 1, "owners": ["MYID", "FRIENDID"], "incidentChannel": "INCIDENTCHANNELID", "firstDebugPort": 40000 } }
The bot work well. Only log are undefined
The manages isn't made to run with only a shard. If you need to run it with only a shard just use the npm run dev
command.
You should try to set like 2 shards if the problem still occurs.
The manages isn't made to run with only a shard. If you need to run it with only a shard just use the
npm run dev
command.You should try to set like 2 shards if the problem still occurs.
no no but with no edit code, the bot worked fine. With [SHARD ID] but now is undefined maybe i edited client.ts where is defined [SHARD ID] ?
The manager doesn't interact with the client. The undefined that you're seeing is from this line
i don't edited nothing here dude
Yes ik, it seems to be a problem caused by the single shard config, the manage is made to manage multiple shards, not only one.
Yes ik, it seems to be a problem caused by the single shard config, the manage is made to manage multiple shards, not only one.
2 shards same issue
oh it could also be a problem with the dependency "colors" which doesn't work perfectly or isn't working with your cmd/ssh client/terminal
Woked on hours later.
Ohh fixed thank you
For other people : color module issue 👯
https://media.discordapp.net/attachments/832354283907055657/832358258463211555/unknown.png?width=594&height=676 Edited the status and i have it.