Exemplo n.º 1
0
    def __init__(self, bot: Red, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.bot = bot

        self.settings = PadInfoSettings("padinfo")

        self.index_all = None
        self.index_na = None

        self.menu = Menu(bot)

        # These emojis are the keys into the idmenu submenus
        self.id_emoji = '\N{INFORMATION SOURCE}'
        self.evo_emoji = char_to_emoji('e')
        self.mats_emoji = char_to_emoji('m')
        self.ls_emoji = '\N{INFORMATION SOURCE}'
        self.left_emoji = char_to_emoji('l')
        self.right_emoji = char_to_emoji('r')
        self.pantheon_emoji = '\N{CLASSICAL BUILDING}'
        self.skillups_emoji = '\N{MEAT ON BONE}'
        self.pic_emoji = '\N{FRAME WITH PICTURE}'
        self.other_info_emoji = '\N{SCROLL}'
        self.previous_monster_emoji = '\N{HEAVY MINUS SIGN}'
        self.next_monster_emoji = '\N{HEAVY PLUS SIGN}'
        self.remove_emoji = self.menu.emoji['no']

        self.historic_lookups_file_path = _data_file('historic_lookups.json')
        self.historic_lookups = safe_read_json(self.historic_lookups_file_path)

        self.historic_lookups_file_path_id2 = _data_file(
            'historic_lookups_id2.json')
        self.historic_lookups_id2 = safe_read_json(
            self.historic_lookups_file_path_id2)
Exemplo n.º 2
0
 def __init__(self, bot, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self.bot = bot
     self.file_path = _data_file('commands.json')
     self.c_commands = safe_read_json(self.file_path)
     self.c_commands = {int(k): v for k, v in self.c_commands.items()}  # Fix legacy issues
     self.settings = MemesSettings("memes")
Exemplo n.º 3
0
    def __init__(self, bot: Red, *args, **kwargs):
        super().__init__(*args, **kwargs)
        global PADGLOBAL_COG
        PADGLOBAL_COG = self
        self.bot = bot
        self.file_path = _data_file('commands.json')
        self.c_commands = safe_read_json(self.file_path)
        self.settings = PadGlobalSettings("padglobal")

        self._export_data()