Ask coding questions

← Back to all posts
My bot is going offline
Soham8040

I've noticed often that my discord.py bot is going offline even after using uptimerobot and webserver, I am new to coding bots so I don't know what to do.

Voters
KeaganLandfried
Soham8040
Comments
hotnewtop
KeaganLandfried

Can you link your bot?
I have made multiple Discord bots and pinged them using uptimerobot. Make sure you have a keep_alive function as well.

Soham8040

@KeaganLandfried
I have kept it like
`keep_alive()

client.run('My token')`

KeaganLandfried

@Soham8040
Did you write the keep alive function ?

Soham8040
KeaganLandfried

@Soham8040
That's odd, how often is UptimeRobot pinging it?