Exemple #1
0
 def __init__(self, bot):
     super().__init__(bot)
     self.guild_storage = SQLiteGuildTable("moderation", [
         SQLiteColumn("mute_role", SQLiteDataType.INTEGER, None),
         SQLiteColumn("inv_cop", SQLiteDataType.INTEGER, False),
         SQLiteColumn("invcop_bypasses", SQLiteDataType.JSON, "[]")
     ])
Exemple #2
0
 def __init__(self, bot):
     super().__init__(bot)
     self.guild_storage = SQLiteGuildTable("roles", [
         SQLiteColumn("role_me_lvl", SQLiteDataType.INTEGER, None),
         SQLiteColumn("role_me_roles", SQLiteDataType.JSON, "[]"),
         SQLiteColumn("join_role", SQLiteDataType.INTEGER, None),
         SQLiteColumn("rolestate", SQLiteDataType.BOOL, SQLiteBool.FALSE),
         SQLiteColumn("rolestate_storage", SQLiteDataType.JSON, "{}")
     ])
Exemple #3
0
 def __init__(self, bot):
     super().__init__(bot)
     self.guild_storage = SQLiteGuildTable(
         "logging",
         [SQLiteColumn("log_channel", SQLiteDataType.INTEGER, None)])
Exemple #4
0
 def __init__(self, bot):
     super().__init__(bot)
     self.guild_storage = SQLiteGuildTable(
         "misc", [SQLiteColumn("ts_ban", SQLiteDataType.INTEGER, False)])
Exemple #5
0
 def __init__(self, bot):
     super().__init__(bot)
     self.config = JsonConfigManager("misc.json", DEFAULT)
     self.guild_storage = SQLiteGuildTable(
         "misc", [SQLiteColumn("ts_ban", SQLiteDataType.INTEGER, False)])