Exemple #1
0
 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()
Exemple #2
0
 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()
Exemple #3
0
 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()