refactor(bot): ⚰️ Remove dead code.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user