From f8a71f20a2d095bad2524fd0128c692e42371cda Mon Sep 17 00:00:00 2001 From: Rilliat Date: Fri, 13 Jun 2025 23:39:42 +0300 Subject: [PATCH] remove hikari`s ubguard as redundant (err 521) --- heroku/dispatcher.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/heroku/dispatcher.py b/heroku/dispatcher.py index d18a3cf..25470b1 100644 --- a/heroku/dispatcher.py +++ b/heroku/dispatcher.py @@ -145,7 +145,6 @@ class CommandDispatcher: self.raw_handlers = [] self._external_bl: typing.List[int] = [] - asyncio.ensure_future(self._external_bl_reload_loop()) async def _handle_ratelimit(self, message: Message, func: callable) -> bool: if await self.security.check(message, security.OWNER): @@ -713,15 +712,3 @@ class CommandDispatcher: await func(message) except Exception as e: await exception_handler(e, message, *args) - - async def _external_bl_reload_loop(self): - while True: - with contextlib.suppress(Exception): - self._external_bl = ( - await utils.run_sync( - requests.get, - "https://ubguard.dan.tatar/blacklist.json", - ) - ).json()["blacklist"] - - await asyncio.sleep(60)