From ec00a557fa3bdcb3176079a9d243d64628a83c1e Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:21:55 -0300 Subject: [PATCH] refactor(bot): :coffin: Remove dead code. --- run.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/run.py b/run.py index 65f8533..549278a 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,6 @@ from multiprocessing import managers -from datetime import datetime, timezone, timedelta +from datetime import datetime, timezone def shard( @@ -27,20 +27,8 @@ def shard( bot.shutdown = shutdown bot.scheduled_shutdown = scheduled_shutdown - try: - # Skip uvloop initialization, it stops tasks from running for some reason. - raise ImportError() - - import uvloop # pylint: disable=import-error - - bot.loop = uvloop.new_event_loop() - print(f"Running shard {shard_id} with uvloop.") - - except ImportError: - print(f"Running shard {shard_id} with default loop.") - - finally: - bot.run(config.TOKEN) + print(f"Running shard {shard_id} with default loop.") + bot.run(config.TOKEN) def flush_process():