#
# Default value:
###
-supybot.plugins: Admin Misc Pokedex WWWJDIC Channel User Unicode Owner Config NetHack Math Karma
+supybot.plugins: Admin Math Misc NetHack Owner User Unicode WWWJDIC Config Pokedex Channel Karma
###
# Determines whether this plugin is loaded by default.
#
# Default value:
###
-supybot.plugins.Pokedex.databaseURL: sqlite:////home/eevee/beta.veekun.com/veekun/pokedex.db
+supybot.plugins.Pokedex.databaseURL: sqlite:////home/eevee/dywypi/pokedex/pokedex/data/pokedex.sqlite
###
# Determines whether this plugin is loaded by default.
self.__parent = super(Pokedex, self)
self.__parent.__init__(irc)
self.db = pokedex.db.connect(self.registryValue('databaseURL'))
- self.indices = pokedex.lookup.open_index(
+ self.lookup = pokedex.lookup.PokedexLookup(
directory=conf.supybot.directories.data.dirize('pokedex-index'),
session=self.db,
)
thing = ascii_thing.decode('latin1')
# Similar logic to the site, here.
- results = pokedex.lookup.lookup(thing, session=self.db,
- indices=self.indices)
+ results = self.lookup.lookup(thing)
# Nothing found
if len(results) == 0: