def __init__(self, dbFile=r"./common/KFP_bot.db"): self.sqliteDb = SqliteDatabase(dbFile) KfpMigrator.KfpMigrate(self.sqliteDb) db.proxy.initialize(self.sqliteDb) self.sqliteDb.create_tables(MODULES) self.__ignoreXpChannel = ChannelUtil.getXPIgnoredChannels() self.__autoClearChannel = ChannelUtil.getAutoClearChannels()
def remove_ignore_xp_channel(self, guild_id: int, channel_id: int): ChannelUtil.removeChannel(guild_id, channel_id, Util.ChannelType.IGNORE_XP) self.__ignoreXpChannel = ChannelUtil.getXPIgnoredChannels()
def set_ignore_xp_channel(self, guild_id: int, channel_id: int): ChannelUtil.setChannel(guild_id, channel_id, Util.ChannelType.IGNORE_XP, True) self.__ignoreXpChannel = ChannelUtil.getXPIgnoredChannels()