Ejemplo n.º 1
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("voice")
        self.text = CogText("voice")

        self.locked = []
Ejemplo n.º 2
0
    def __init__(self, bot):
        super().__init__(bot)

        self.text = CogText("meme")
        self.config = CogConfig("meme")

        self.fishing_pool = self.config.get("_fishing")
Ejemplo n.º 3
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("roles")
        self.text = CogText("roles")

        self.limit_programmes = {}
        self.limit_interests = {}
Ejemplo n.º 4
0
    def __init__(self, bot: commands.Bot):
        super().__init__(bot)

        self.config = CogConfig("base")
        self.text = CogText("base")

        self.status_loop.start()
        self.status = "online"
Ejemplo n.º 5
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("animals")
        self.text = CogText("animals")

        self.channel = None
        self.role = None
Ejemplo n.º 6
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("warden")
        self.text = CogText("warden")

        self.limit_full = 3
        self.limit_hard = 7
        self.limit_soft = 14
Ejemplo n.º 7
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("admin")
        self.text = CogText("admin")

        self.usage = {}

        self.jail_check.start()
        self.just_booted = True
Ejemplo n.º 8
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("animals")
        self.text = CogText("animals")

        self.channel = None
        self.role = None
        # Because the API doesn't return the avatar resource immediately,
        # sometimes nothing happens, because the client caches the 404
        # response (?). This is an attempt to counter that.
        self.check_delay = 10
Ejemplo n.º 9
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("actress")
        self.text = CogText("actress")

        self.supported_formats = ("jpg", "jpeg", "png", "webm", "mp4", "gif")
        self.path = os.getcwd() + "/data/actress/"
        try:
            self.reactions = hjson.load(open(self.path + "reactions.hjson"))
        except:
            self.reactions = {}
        self.usage = {}
Ejemplo n.º 10
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("points")
        self.text = CogText("points")

        self.limits_message = self.config.get("points_message")
        self.timer_message = self.config.get("timer_message")
        self.limits_reaction = self.config.get("points_reaction")
        self.timer_reaction = self.config.get("timer_reaction")

        self.stats_message = {}
        self.stats_reaction = {}

        self.cleanup.start()
Ejemplo n.º 11
0
    def __init__(self, bot: commands.Bot):
        super().__init__(bot)

        self.config = CogConfig("sync")
        self.text = CogText("sync")

        self.slave_guild_id = self.config.get("slave_guild_id")
        self.engineer_ids = self.config.get("roles", "master_engineer_ids")
        self.slave_verify_id = self.config.get("roles", "slave_verify_id")

        self.mapping_ids = self.config.get("roles", "mapping")
        self.mapping = {}

        self.slave_guild = None
        self.slave_verify = None
Ejemplo n.º 12
0
    def __init__(self, bot):
        super().__init__(bot)

        self.config = CogConfig("librarian")
        self.text = CogText("librarian")
Ejemplo n.º 13
0
    def __init__(self, bot):
        super().__init__(bot)

        self.text = CogText("verify")
        self.config = CogConfig("verify")
Ejemplo n.º 14
0
    def __init__(self, bot):
        super().__init__(bot)

        self.text = CogText("anonsend")
        self.config = CogConfig("anonsend")
Ejemplo n.º 15
0
    def __init__(self, bot: commands.Bot):
        super().__init__(bot)

        self.config = CogConfig("base")