def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.users.register_data_name("mudae_data", MudaeUserData)
     # noinspection PyArgumentList
     self.storage.caches.register_cache("mudae_data",
                                        MudaeCacheData(self.storage.config))
     self.add_cog(MudaeModCog(self.bot, self.storage))
Esempio n. 2
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.cache: TimeKeeperCache = self.storage.caches.register_cache(
         "timekeeper_cache", TimeKeeperCache)
     self.storage.users.register_data_name("timekeeper_data", TimerUserData)
     self.add_cog(
         TimekeeperCog(self.bot, self.storage, self.timer, self.cache))
Esempio n. 3
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.session = aiohttp.ClientSession()
     # noinspection PyArgumentList
     self.eve_config: EVEConfig = EVEConfig(self.storage.config)
     self.storage.caches.register_cache("eve_config", self.eve_config)
     eve_manager_cache_location = f"{self.storage.config.data_folder_path}/cache"
     self.eve_manager = EVEManager(
         sde_path=self.eve_config.sde_location,
         cache_location=eve_manager_cache_location,
         use_aiohttp=True,
         session=self.session)
     self.auth: EVEAuthManager = EVEAuthManager(self.storage, self.session)
     self.user_auth: EVEUserAuthManager = EVEUserAuthManager(
         self.storage, self.session)
     self.market = MarketManager(self.eve_config, self.auth,
                                 self.eve_manager, self.session)
     self.planet_int = PlanetIntManager(self.storage, self.eve_config,
                                        self.user_auth, self.eve_manager,
                                        self.session)
     self.add_cog(EVEMiscCog(self.session))
     self.add_cog(EVEMarketCog(self.storage, self.eve_manager, self.market))
     self.add_cog(EVEAuthCog(self.storage, self.user_auth, self.auth))
     self.add_cog(
         EVEPlanetaryIntegrationCog(self.user_auth, self.eve_manager,
                                    self.planet_int))
     self.add_cog(EVEIndustryJobCog(self.user_auth, self.eve_manager))
     self.add_cog(LootHistoryCog(self.eve_manager, self.market))
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.cache: ModerationGlobalData = self.storage.caches.register_cache(
         "moderation_data", ModerationGlobalData)
     self.storage.guilds.register_data_name("moderation_settings",
                                            ModerationGuildSettings)
     self.storage.guilds.register_data_name("moderation_data",
                                            ModerationGuildData)
     self.add_cog(
         NewPunishmentCog(self.bot, self.storage, self.timer, self.cache))
     self.add_cog(GuildLoggingCog(self.storage))
Esempio n. 5
0
    def __init__(self, *args):
        BaseModule.__init__(self, *args)
        self.session = aiohttp.ClientSession()
        # noinspection PyArgumentList
        # self.steam_cache = SteamAnnouncementCache(self.storage.config)
        # self.storage.caches.register_cache("steam_announcement_cache", self.steam_cache)
        self.storage.guilds.register_data_name("welcome_config", WelcomeConfig)
        # self.storage.guilds.register_data_name("steam_announcement_config", SteamAnnouncementConfig)

        self.add_cog(WelcomeCog(self.storage))
        # self.add_cog(SteamAnnouncementCog(self.bot, self.storage, self.steam_cache))
        self.add_cog(SidebarStatusCog(self.bot, self.session))
        self.add_cog(MiscCog())
Esempio n. 6
0
    def __init__(self, *args):
        BaseModule.__init__(self, *args)
        # noinspection PyArgumentList
        self.storage.caches.register_cache(
            "basic_mmo_data", BasicMMODataStorage(self.storage.config))
        self.storage.users.register_data_name("mmo_char_save",
                                              CharacterSaveData)
        self.storage.guilds.register_data_name("mmo_config", GuildMMOConfig)
        self.storage.users.register_data_name("mmo_config", UserMMOConfig)

        self.mmo_server: MMOServer = MMOServer(self.storage)

        self.add_cog(MMOAdmin(self.storage, self.mmo_server))
        self.add_cog(MMOUser(self.bot, self.storage, self.mmo_server))
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     # self.storage.users.register_data_name("example_user_data", ExampleUserData)
     self.steam_cache = self.storage.caches.register_cache(
         "steam_announcement_cache", SteamAnnouncementCache)
     self.twitch_config = self.storage.caches.register_cache(
         "twitch_config", twitch.TwitchBotConfig)
     self.twitch_cache = self.storage.caches.register_cache(
         "twitch_cache", twitch.TwitchBotCache)
     self.storage.guilds.register_data_name("steam_announcement_config",
                                            SteamAnnouncementConfig)
     self.storage.guilds.register_data_name("twitch_config",
                                            twitch.TwitchGuildConfig)
     self.session = aiohttp.ClientSession()
     self.add_cog(ListenerCog(self.storage))
     self.add_cog(
         SteamAnnouncementCog(self.bot, self.storage, self.steam_cache,
                              self.session))
     self.add_cog(
         twitch.TwitchCog(self.bot, self.storage, self.twitch_config,
                          self.twitch_cache, self.session))
Esempio n. 8
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.users.register_data_name("example_user_data",
                                           ExampleUserData)
     self.add_cog(ExampleCog(self.storage))
Esempio n. 9
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     # self.storage.users.register_data_name("example_user_data", ExampleUserData)
     self.add_cog(DevToolCog(self.bot, self.storage, self.timer))
Esempio n. 10
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.guilds.register_data_name("battle_config", GuildBattleConfig)
     self.add_cog(BattleCog(self.storage, self.timer))
Esempio n. 11
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.users.register_data_name("dnd_data", DndUserData)
     self.add_cog(DnDCog(self.storage))
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.guilds.register_data_name("self_roles_data",
                                            RoleSelfAssignData)
     self.add_cog(SelfRoleCog(self.storage))
Esempio n. 13
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.storage.guilds.register_data_name("faq_config", FAQConfig)
     self.faq_manager: FAQManager = FAQManager(self.storage)
     self.add_cog(FAQCog(self.storage, self.faq_manager, self.bot))
Esempio n. 14
0
 def __init__(self, *args):
     BaseModule.__init__(self, *args)
     self.add_cog(ActivityCog(self.bot))
     self.add_cog(CalloutCog(self.storage))