feat(commands/bot): add uptime

This commit is contained in:
2024-12-30 03:47:01 -05:00
parent 59c4b37831
commit 6b9172ef1b
6 changed files with 68 additions and 13 deletions

View File

@@ -3,13 +3,16 @@ import inspect
from state import reloaded_modules
from . import tools, utils, voice
from . import bot, tools, utils, voice
from .utils import *
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)