mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 11:14:23 +00:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
from core.classes import user, admin, client, channel, reputation, settings, commands
|
|
import core.definition as df
|
|
import core.base as baseModule
|
|
import core.classes.config as confModule
|
|
|
|
class Loader:
|
|
|
|
def __init__(self):
|
|
|
|
# Load Modules
|
|
self.Definition: df = df
|
|
|
|
self.ConfModule: confModule = confModule
|
|
|
|
self.BaseModule: baseModule = baseModule
|
|
|
|
# Load Classes
|
|
self.Settings: settings.Settings = settings.Settings()
|
|
|
|
self.Config: df.MConfig = self.ConfModule.Configuration().ConfigObject
|
|
|
|
self.Base: baseModule.Base = self.BaseModule.Base(self.Config, self.Settings)
|
|
|
|
self.User: user.User = user.User(self.Base)
|
|
|
|
self.Client: client.Client = client.Client(self.Base)
|
|
|
|
self.Admin: admin.Admin = admin.Admin(self.Base)
|
|
|
|
self.Channel: channel.Channel = channel.Channel(self.Base)
|
|
|
|
self.Reputation: reputation.Reputation = reputation.Reputation(self.Base)
|
|
|
|
self.Commands: commands.Command = commands.Command(self.Base)
|