Skip to content

Bot goes offline after 10-20secs #7204

Answered by lmaotrigine
developers192 asked this question in Q&A
Discussion options

You must be logged in to vote

You have the event loop blocked because of your use of the with context manager without yielding from it.

There will also be issues because you define and start tasks inside of on_ready and changing presence every 4 seconds.

As for your immediate issue, consider using a database to store data persistently.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@developers192
Comment options

@Vexs
Comment options

@Phxntxm
Comment options

@developers192
Comment options

Answer selected by developers192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants