From 99c3793618d069b0699d2db27aee1c104f5eca41 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 30 Dec 2024 04:12:13 -0500 Subject: [PATCH] style: format all files --- commands/bot.py | 5 ++--- core.py | 1 + main.py | 3 +-- ytdlp.py | 5 ++++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/commands/bot.py b/commands/bot.py index 41efc47..0bacb95 100644 --- a/commands/bot.py +++ b/commands/bot.py @@ -3,11 +3,10 @@ import inspect import time import arguments -import constants -from state import reloaded_modules, start_time - import commands +import constants import utils +from state import reloaded_modules, start_time async def uptime(message): diff --git a/core.py b/core.py index a0b598c..e9eea9b 100644 --- a/core.py +++ b/core.py @@ -1,5 +1,6 @@ message_handlers = {} + async def trigger_message_handlers(event_type: str, *data): if event_type in message_handlers: for message_handler in message_handlers[event_type]: diff --git a/main.py b/main.py index 7d03777..c998f52 100644 --- a/main.py +++ b/main.py @@ -2,13 +2,12 @@ import importlib import inspect import time +import commands import constants import core import events from state import client, reloaded_modules, start_time -import commands - @client.event async def on_ready(): diff --git a/ytdlp.py b/ytdlp.py index 036c885..be8bfe3 100644 --- a/ytdlp.py +++ b/ytdlp.py @@ -46,7 +46,10 @@ class YTDLSource(disnake.PCMVolumeTransformer): def __reload_module__(): for name, module in globals().items(): - if inspect.ismodule(module) and name not in constants.RELOAD_BLACKLISTED_MODULES: + if ( + inspect.ismodule(module) + and name not in constants.RELOAD_BLACKLISTED_MODULES + ): importlib.reload(module) if "__reload_module__" in dir(module) and name not in reloaded_modules: reloaded_modules.add(name)