def __init__(self, context: Context): self.bot = context.get_bot() self.queue_dao = get_queue_dao(context) self.raid_dao = get_raid_dao(context) self.raid_service = get_raid_service(context) self.queue_service = get_queue_service(context) self.raid_info_service = get_raid_info_service(context)
def get_settings_dao(context: Context) -> SettingsDao: return context.get_or_register_module(MODULE_NAME, lambda: SettingsDao(context))
def get_raid_stat_service(context: Context) -> RaidStatService: return context.get_or_register_module(MODULE_NAME, lambda: RaidStatService(context))
def __init__(self, context: Context): self.bot = context.get_bot() self.settings_service = get_settings_service(context)
def get_raid_stats_dao(context: Context) -> RaidStatsDao: return context.get_or_register_module(MODULE_NAME, lambda: RaidStatsDao(context))
def get_raid_postgres_dao(context: Context) -> RaidPostgresDao: return context.get_or_register_module(MODULE_NAME, lambda: RaidPostgresDao(context))
def get_command_restriction_service(context: Context) -> CommandRestrictionService: return context.get_or_register_module( MODULE_NAME, lambda: CommandRestrictionService(context) )
def __init__(self, context: Context): self.bot = context.get_bot() self.raid_stat_service = get_raid_stat_service(context) self.raid_service = get_raid_service(context)
def get_command_restriction_dao(context: Context) -> CommandRestrictionDao: return context.get_or_register_module( MODULE_NAME, lambda: CommandRestrictionDao(context))
def __init__(self, context: Context): self.bot = context.get_bot() self.mayhem_channels: Set[int] = set()
def get_settings_service(context: Context) -> SettingsService: return context.get_or_register_module(MODULE_NAME, lambda: SettingsService(context))
def get_queue_dao(context: Context) -> QueueDao: return context.get_or_register_module(MODULE_NAME, lambda: QueueDao(context))
def get_postgres_connection(context: Context) -> PostgresConnection: return context.get_or_register_module(MODULE_NAME, lambda: PostgresConnection(context))
def __init__(self, context: Context): self.bot = context.get_bot() self.kira = 441525718065872906
def get_redis_connection(context: Context) -> RedisConnection: return context.get_or_register_module(MODULE_NAME, lambda: RedisConnection(context))