style: format all files
This commit is contained in:
parent
cc0a66c3c4
commit
99c3793618
@ -3,11 +3,10 @@ import inspect
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
import arguments
|
import arguments
|
||||||
import constants
|
|
||||||
from state import reloaded_modules, start_time
|
|
||||||
|
|
||||||
import commands
|
import commands
|
||||||
|
import constants
|
||||||
import utils
|
import utils
|
||||||
|
from state import reloaded_modules, start_time
|
||||||
|
|
||||||
|
|
||||||
async def uptime(message):
|
async def uptime(message):
|
||||||
|
1
core.py
1
core.py
@ -1,5 +1,6 @@
|
|||||||
message_handlers = {}
|
message_handlers = {}
|
||||||
|
|
||||||
|
|
||||||
async def trigger_message_handlers(event_type: str, *data):
|
async def trigger_message_handlers(event_type: str, *data):
|
||||||
if event_type in message_handlers:
|
if event_type in message_handlers:
|
||||||
for message_handler in message_handlers[event_type]:
|
for message_handler in message_handlers[event_type]:
|
||||||
|
3
main.py
3
main.py
@ -2,13 +2,12 @@ import importlib
|
|||||||
import inspect
|
import inspect
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import commands
|
||||||
import constants
|
import constants
|
||||||
import core
|
import core
|
||||||
import events
|
import events
|
||||||
from state import client, reloaded_modules, start_time
|
from state import client, reloaded_modules, start_time
|
||||||
|
|
||||||
import commands
|
|
||||||
|
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
5
ytdlp.py
5
ytdlp.py
@ -46,7 +46,10 @@ class YTDLSource(disnake.PCMVolumeTransformer):
|
|||||||
|
|
||||||
def __reload_module__():
|
def __reload_module__():
|
||||||
for name, module in globals().items():
|
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)
|
importlib.reload(module)
|
||||||
if "__reload_module__" in dir(module) and name not in reloaded_modules:
|
if "__reload_module__" in dir(module) and name not in reloaded_modules:
|
||||||
reloaded_modules.add(name)
|
reloaded_modules.add(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user