#bot goes offline but no errors?
15 messages · Page 1 of 1 (latest)
its probably none, might be a connection issue
the lib doesnt randomly disconnect your bot and the api shouldnt do that either unless something is going wrong
Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
• Note: if you initialize your Client as bot or other identifiers you need to use these instead of client
• If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebin
can you add those and check the terminal whenever your bot disconnects
Bad internet connection, you had a latency of 41 seconds there
Where do you host that?
That is… not very specific.
That could be anything from the raspberry Pi in my friend‘s basement to a failsafe cluster in IBMs data center connected directly to the backbone. So where exactly do you host? What Hoster
Anything else running on that vps? Or do you have any big sync tasks running in your bot code? Because a latency of 41 seconds is really bad for a VPS like that
Any file reading/writing? Anything else running on that VPS?
Okay, then find out what happens on your VPS at the time it‘s not stable. Check syslog, …
my bot goes offline too, I think it's not connection problem, I'm trying to fix this like few months
I tried to use my bot on VPS, PC, different connection settings, but issue still not solved
Tag suggestion for @drowsy jungle:
Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
• Note: if you initialize your Client as bot or other identifiers you need to use these instead of client
• If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebin