mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
56 lines
1.8 KiB
Python
56 lines
1.8 KiB
Python
from logging import Logger
|
|
from core.classes import user, admin, client, channel, reputation, settings, sasl
|
|
import core.logs as logs
|
|
import core.definition as df
|
|
import core.utils as utils
|
|
import core.base as base_mod
|
|
import core.module as module_mod
|
|
import core.classes.commands as commands_mod
|
|
import core.classes.config as conf_mod
|
|
|
|
class Loader:
|
|
|
|
def __init__(self):
|
|
|
|
# Load Main Modules
|
|
self.Definition: df = df
|
|
|
|
self.ConfModule: conf_mod = conf_mod
|
|
|
|
self.BaseModule: base_mod = base_mod
|
|
|
|
self.CommandModule: commands_mod = commands_mod
|
|
|
|
self.LoggingModule: logs = logs
|
|
|
|
self.Utils: utils = utils
|
|
|
|
# Load Classes
|
|
self.ServiceLogging: logs.ServiceLogging = self.LoggingModule.ServiceLogging()
|
|
|
|
self.Logs: Logger = self.ServiceLogging.get_logger()
|
|
|
|
self.Settings: settings.Settings = settings.Settings()
|
|
|
|
self.Config: df.MConfig = self.ConfModule.Configuration(self).get_config_model()
|
|
|
|
self.Base: base_mod.Base = self.BaseModule.Base(self)
|
|
|
|
self.User: user.User = user.User(self)
|
|
|
|
self.Client: client.Client = client.Client(self)
|
|
|
|
self.Admin: admin.Admin = admin.Admin(self)
|
|
|
|
self.Channel: channel.Channel = channel.Channel(self)
|
|
|
|
self.Reputation: reputation.Reputation = reputation.Reputation(self)
|
|
|
|
self.Commands: commands_mod.Command = commands_mod.Command(self)
|
|
|
|
self.ModuleUtils: module_mod.Module = module_mod.Module(self)
|
|
|
|
self.Sasl: sasl.Sasl = sasl.Sasl(self)
|
|
|
|
self.Logs.debug("LOADER Success!")
|