chaun14 / invite-manager-bot

A discord bot that tracks invites and much more. Forked for invitelogger https://invitelogger.me
https://classic.invitelogger.me/
GNU General Public License v3.0
34 stars 23 forks source link

manager shows shard undefined log #18

Closed ThisDudeBoy closed 3 years ago

ThisDudeBoy commented 3 years ago

https://media.discordapp.net/attachments/832354283907055657/832358258463211555/unknown.png?width=594&height=676 Edited the status and i have it.

chaun14 commented 3 years ago

Which command are you using to start the bot?

ThisDudeBoy commented 3 years ago

Your manager

chaun14 commented 3 years ago

And which config have you set in the controller part of the config.json file ?

ThisDudeBoy commented 3 years ago

{ "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

chaun14 commented 3 years ago

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.

ThisDudeBoy commented 3 years ago

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] ?

chaun14 commented 3 years ago

The manager doesn't interact with the client. The undefined that you're seeing is from this line

ThisDudeBoy commented 3 years ago

i don't edited nothing here dude

ThisDudeBoy commented 3 years ago

image image

chaun14 commented 3 years ago

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.

ThisDudeBoy commented 3 years ago

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

chaun14 commented 3 years ago

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

ThisDudeBoy commented 3 years ago

Woked on hours later.

ThisDudeBoy commented 3 years ago

Ohh fixed thank you

For other people : color module issue 👯