Power/network outage recovery
After a power outage the bot gets stuck in a name resolution failure, likely due to the bot restarting before the network is ready.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/discord/client.py", line 650, in start
await self.login(*args, bot=bot)
File "/usr/local/lib/python3.7/dist-packages/discord/client.py", line 499, in login
await self.http.static_login(token.strip(), bot=bot)
File "/usr/local/lib/python3.7/dist-packages/discord/http.py", line 291, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/usr/local/lib/python3.7/dist-packages/discord/http.py", line 185, in request
async with self.__session.request(method, url, **kwargs) as r:
File "/usr/local/lib/python3.7/dist-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.7/dist-packages/aiohttp/client.py", line 483, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/dist-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/connector.py", line 859, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/connector.py", line 971, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host discord.com:443 ssl:default [Temporary failure in name resolution]