def __init__(self, bot): MangoCog.__init__(self, bot) self.session = session self.criteria_aliases = read_json(settings.resource("json/criteria_aliases.json")) self.hero_aliases = {} self.build_aliases() self.vpkurl = "http://dotabase.me/dota-vpk" drawdota.init_dota_info(self.get_hero_infos(), self.get_item_infos())
def __init__(self, bot): MangoCog.__init__(self, bot) self.session = session self.criteria_aliases = read_json(settings.resource("json/criteria_aliases.json")) self.hero_stat_categories = read_json(settings.resource("json/hero_stats.json")) self.hero_aliases = {} self.item_aliases = {} self.leveled_hero_stats = [] # by level (0 is null, and 1-30 are filled in) self.hero_regex = "" self.build_helpers() self.vpkurl = "http://dotabase.dillerm.io/dota-vpk" drawdota.init_dota_info(self.get_hero_infos(), self.get_item_infos(), self.get_ability_infos(), self.vpkurl)
def __init__(self, bot): MangoCog.__init__(self, bot) self.session = session self.criteria_aliases = read_json( settings.resource("json/criteria_aliases.json")) self.item_colors = read_json( settings.resource("json/dota_item_colors.json")) self.hero_aliases = {} self.item_aliases = {} self.hero_regex = "" self.build_helpers() self.vpkurl = "http://dotabase.dillerm.io/dota-vpk" drawdota.init_dota_info(self.get_hero_infos(), self.get_item_infos())