Patch for new aio adapter.

This commit is contained in:
2025-09-02 08:36:03 +10:00
parent 9209dbaa8d
commit 38ba997dbe

View File

@@ -12,11 +12,16 @@ from modules import twitch_setup
logger = logging.getLogger(__name__)
class FixedAiohttpAdapter(AiohttpAdapter):
def _find_redirect(self, request):
return self.redirect_url
async def main():
db = Database(conf.data['args'])
async with db.open():
adapter = AiohttpAdapter(
adapter = FixedAiohttpAdapter(
host=conf.bot.get('wshost', None),
port=conf.bot.getint('wsport', None),
domain=conf.bot.get('wsdomain', None),