Moving some methods to utils.py, creating new logs class

This commit is contained in:
adator
2025-08-17 22:41:51 +02:00
parent 8d23827e1e
commit 25262d4049
24 changed files with 653 additions and 601 deletions

View File

@@ -1,4 +1,6 @@
from logging import Logger
from core.classes import user, admin, client, channel, reputation, settings, commands
import core.logs as logs
import core.definition as df
import core.utils as utils
import core.base as base_module
@@ -9,29 +11,35 @@ class Loader:
def __init__(self):
# Load Main Modules
self.Definition: df = df
self.Definition: df = df
self.ConfModule: conf_module = conf_module
self.ConfModule: conf_module = conf_module
self.BaseModule: base_module = base_module
self.BaseModule: base_module = base_module
self.Utils: utils = utils
self.Utils: utils = utils
self.LoggingModule: logs = logs
# Load Classes
self.ServiceLogging: logs.ServiceLogging = logs.ServiceLogging()
self.Logs: Logger = self.ServiceLogging.get_logger()
self.Settings: settings.Settings = settings.Settings()
self.Config: df.MConfig = self.ConfModule.Configuration().ConfigObject
self.Base: base_module.Base = self.BaseModule.Base(self)
self.Base: base_module.Base = self.BaseModule.Base(self)
self.User: user.User = user.User(self.Base)
self.User: user.User = user.User(self)
self.Client: client.Client = client.Client(self.Base)
self.Client: client.Client = client.Client(self)
self.Admin: admin.Admin = admin.Admin(self.Base)
self.Admin: admin.Admin = admin.Admin(self)
self.Channel: channel.Channel = channel.Channel(self.Base)
self.Channel: channel.Channel = channel.Channel(self)
self.Reputation: reputation.Reputation = reputation.Reputation(self.Base)
self.Reputation: reputation.Reputation = reputation.Reputation(self)
self.Commands: commands.Command = commands.Command(self.Base)
self.Commands: commands.Command = commands.Command(self)