#Do you listen to the debug event

1 messages · Page 1 of 1 (latest)

nimble hamlet
#

the bot works and then stops working like it disconnects or something, it's still running

#

and then when another bot uses the same token

#

both bots work

#

and when the other bot exits the original bot still works

#

for a while

#

then it stops again

#

@pine wave

pine wave
#

Try listening to the debug event

#

And are you hosting your bot locally?

nimble hamlet
#

hosting but it's basically the same

radiant lindenBOT
#

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 | hasteb.in | sourceb.in | hastebin

nimble hamlet
#

yea ok

pine wave
#

Show the output when it disconects

nimble hamlet
#

nothing

#

it just goes offline and discord says bot didn't respond when i run slash commands

#

the bot is still running

#

normally

#

nothing happens in console

kind epoch
#

these events have a ton of data, almost constantly

pine wave
#

I mean, show what the debug event shows when it goes offline

kind epoch
#

add the listeners and post the logs

nimble hamlet
#

it takes abt an hour to do this

#

also if i do a quick restart

#

the once ready event doesn't happen

#

i need to stop it

#

wait a bit then start it

#

hmm

#

the issue only exists on replit

#

when i run it locally it works fine

#

so ig replit got blacklisted by discord or something

#

rate limit

#

idk

kind epoch
#

they routinely ip ban replit, yes. it's not a host meant for discord bots, and its free nature leads to abuse by bad actors

nimble hamlet
#

i share my ip address with who knows how many other bots

kind epoch
nimble hamlet
#

i could be rate limited

#

isn't google's free tier free forever?

kind epoch
#

dunno, check with them. this isn't the place for host discussions, you can ask in #archive-offtopic ¯_(ツ)_/¯

rocky needle
nimble hamlet
#

it also isn't free

rocky needle
nimble hamlet
#

does it need credit card to set up?

rocky needle
#

I think it does

#

But it's still free

nimble hamlet
#

same for google

#

can't use it ig