In some cases, disconnection from the server can be unclean and won't be noticed until the bot tries to send a message, which may never happen if it did not disconnect during the game. To solve this problem, it will now ping the server every 2 minutes by default, which will result in a broken pipe error if the connection is dead. This won't be able to detect netsplits where the server the bot is on stays online, because those are impossible to correctly detect in every case. This commit also adds a !latency command so that users can verify if the bot is lagging. |
||
---|---|---|
.. | ||
en.json |