fix excessive Discord reconnects

This commit is contained in:
InspectorCaracal 2022-12-03 10:35:16 -07:00 committed by GitHub
parent 250c47c84c
commit eabfede7ec

View file

@ -201,7 +201,7 @@ class DiscordWebsocketServerFactory(WebSocketClientFactory, protocol.Reconnectin
reason (str): The reason for the failure.
"""
if self.do_retry or not self.bot:
if self.do_retry and self.bot:
self.retry(connector)
def reconnect(self):