#bot goes offline but no errors?

15 messages · Page 1 of 1 (latest)

wicked horizon
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

earnest spindle
#

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

rotund riverBOT
#

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

earnest spindle
#

can you add those and check the terminal whenever your bot disconnects

sharp heath
#

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

sharp heath
#

Any file reading/writing? Anything else running on that VPS?

sharp heath
#

Okay, then find out what happens on your VPS at the time it‘s not stable. Check syslog, …

drowsy jungle
#

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

rotund riverBOT
#

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