;ò > ÄDc@sDdkiZdkiZd„ZeidƒZeiedƒdS(NcCs«dkl}l}l} l}l}tidtƒ}|i } |dƒxZ|dƒoL|dƒ}yt |ƒ}Wn&tj o} |d| ƒqMnXd} zyex^|D]V}|idƒ}| p |id ƒoq²n|id dƒ\}} | d7} q²WWn$tj o|d | ƒwMnXWd|iƒX|d ƒ}ti| |ti|d ƒƒ|dƒ}ti| i|ƒdti|d ƒƒqMWdS(N(soutputsexpectsanythings somethingsynsLookupsŒThis module allows you to define commands that do a simple key lookup and return some simple value. It has a command "add" that takes a command name and a file from the data dir and adds a command with that name that responds with the mapping from that file. The file itself should be composed of lines of the form key:value.sWould you like to add a file?sWhat's the filename?sI couldn't open that file: %sis s#s:s/That's not a valid file; line #%s is malformed.s&What would you like the command to be?ss8Would you like the key to be shown for random responses?snokey( ssupybot.questionssoutputsexpectsanythings somethingsynsconfsregisterPluginsTruesLookupslookupssfilenamesfilesfdsEnvironmentErrorsescounterslinesrstrips startswithssplitskeysvalues ValueErrorsclosescommandsregisterGlobalValuesregistrysStringsnokeyValsgetsBoolean(sadvancedsLookupsexpectsfilenamesynsfdskeysnokeyValslineslookupssesanythingscountersvaluescommandsoutputs something((s./Lookup/config.pys configure!s@%        sLookupslookups(s supybot.confsconfssupybot.registrysregistrys configuresregisterPluginsLookups registerGroup(sLookupsregistrysconfs configure((s./Lookup/config.pys?s   ,