# Path: hypebot/core/name_complete_lib.py
# class NameComplete(object):
#   def __init__(self, alias_map, name_map, display_names=None, dankify=False):
#   def _GetAliasesFromDisplayNames(self, display_names):
#   def __getitem__(self, key):
#   def __contains__(self, key):
#   def __iter__(self):
#   def GuessThing(self, name):


import re
from hypebot.core import name_complete_lib
from typing import Text
      'ibg': 'iceborngauntlet',
      'ie': 'infinityedge',
      'lucidityboots': 'ionianbootsoflucidity',
      'lw': 'lastwhisper',
      'mogs': 'warmogsarmor',
      'pd': 'phantomdancer',
      'qss': 'quicksilversash',
      'rabadabadoodle': 'rabadonsdeathcap',
      'runicechoes': 'enchantmentrunicechoes',
      'sv': 'spiritvisage',
      'swifties': 'bootsofswiftness',
      'triforce': 'trinityforce',
      }

  def __init__(self, rito):
    self._rito = rito
    self._name_to_item = {}
    self.ReloadData()

  def ReloadData(self):
    """Reload LoL items-related data into memory from the Rito API."""
    r = self._rito.ListItems()
    if not r:
      return
    item_data = r.data

    for item in item_data.values():
      name = self._GetItemName(item.name)
      self._name_to_item[name] = item


# Path: hypebot/core/name_complete_lib.py
# class NameComplete(object):
#   def __init__(self, alias_map, name_map, display_names=None, dankify=False):
#   def _GetAliasesFromDisplayNames(self, display_names):
#   def __getitem__(self, key):
#   def __contains__(self, key):
#   def __iter__(self):
#   def GuessThing(self, name):


# Path: hypebot/plugins/league/items_lib.py
import re
from hypebot.core import name_complete_lib
from typing import Text

      'ibg': 'iceborngauntlet',
      'ie': 'infinityedge',
      'lucidityboots': 'ionianbootsoflucidity',
      'lw': 'lastwhisper',
      'mogs': 'warmogsarmor',
      'pd': 'phantomdancer',
      'qss': 'quicksilversash',
      'rabadabadoodle': 'rabadonsdeathcap',
      'runicechoes': 'enchantmentrunicechoes',
      'sv': 'spiritvisage',
      'swifties': 'bootsofswiftness',
      'triforce': 'trinityforce',
      }

  def __init__(self, rito):
    self._rito = rito
    self._name_to_item = {}
    self.ReloadData()

  def ReloadData(self):
    """Reload LoL items-related data into memory from the Rito API."""
    r = self._rito.ListItems()
    if not r:
      return
    item_data = r.data

    for item in item_data.values():
      name = self._GetItemName(item.name)
      self._name_to_item[name] = item


    self._name_complete = name_complete_lib.NameComplete(