Rewrite gateway to use aiohttp instead of websockets

This commit is contained in:
Rapptz
2020-04-07 21:53:55 -04:00
parent 45cb231161
commit b8154e365f
8 changed files with 97 additions and 92 deletions

View File

@ -27,7 +27,6 @@ DEALINGS IN THE SOFTWARE.
import asyncio
import datetime
import aiohttp
import websockets
import discord
import inspect
import logging
@ -58,8 +57,6 @@ class Loop:
discord.ConnectionClosed,
aiohttp.ClientError,
asyncio.TimeoutError,
websockets.InvalidHandshake,
websockets.WebSocketProtocolError,
)
self._before_loop = None