Y
Y
yeahxd2021-05-09 02:39:34
Python
yeahxd, 2021-05-09 02:39:34

How to display a notification that the bot has stopped working?

@client.event

async def on_ready():
    print ('Bot connected')

Indicates that the bot has started work. How to do the opposite?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2021-05-09
@yeahxd

The on_disconnect event is fired when a websocket disconnect occurs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question