;ς = ΔDc@sKdkZdkiZdkTdkiZdeifd„ƒYZeZdS(N(s*s UrbanDictcBsztZeZeidƒZd„Zd„Ze ee dƒgƒZd„Z d„Z e e ƒZ d„Z e e ƒZ RS(Ns#http://api.urbandictionary.com/soapcCs6|idƒ}| o|iddtƒn|SdS(Ns licenseKeysωYou must have a free UrbanDictionary API license key in order to use this command. You can get one at . Once you have one, you can set it with the command "config supybot.plugins.UrbanDict.licenseKey ".sRaise(sselfs registryValueslicensesircserrorsTrue(sselfsircslicense((s./UrbanDict/plugin.pys _licenseCheck)s  c CsΖ|i|ƒ}|ii|di|ƒƒ} t | ƒ o|i ddt ƒn| di }gi }| D] }|d|i|ifƒqm~} |itiid|di| ƒfƒƒdS( sa Returns the definition and usage of from UrbanDictionary.com. s sNo definition found.sRaiseis%s (%s)s%s: %ss; N(sselfs _licenseChecksircslicensesserverslookupsjoinswordss definitionsslenserrorsTrueswordsappends_[1]sds definitionsexamplesreplysutilsswebs htmlToText( sselfsircsmsgsargsswordsswordsdslicenses_[1]s definitions((s./UrbanDict/plugin.pys urbandict4s 7s somethingcCs^||ƒ}|i}d|i|ifg}|iti i d|di |ƒfƒƒdS(Ns%s (%s)s%s: %ss; ( s getDefinitionslicenses definitionswordsexamples definitionssircsreplysutilsswebs htmlToTextsjoin(sselfsircs getDefinitionslicenses definitionswords definitions((s./UrbanDict/plugin.pys_defineDs  cCs,|i|ƒ}|i||ii|ƒdS(s{takes no arguments Returns the definition and usage of the daily phrase from UrbanDictionary.com. N(sselfs _licenseChecksircslicenses_definesserversget_daily_definition(sselfsircsmsgsargsslicense((s./UrbanDict/plugin.pysdailyJscCs,|i|ƒ}|i||ii|ƒdS(sztakes no arguments Returns the definition and usage of a random phrase from UrbanDictionary.com. N(sselfs _licenseChecksircslicenses_definesserversget_random_definition(sselfsircsmsgsargsslicense((s./UrbanDict/plugin.pysrandomTs(s__name__s __module__sTruesthreadedsSOAPs SOAPProxysservers _licenseChecks urbandictswrapsmanys_definesdailysrandom(((s./UrbanDict/plugin.pys UrbanDict%s     ( sSOAPs supybot.utilssutilsssupybot.commandsssupybot.callbackss callbackssPlugins UrbanDictsClass(s callbackssutilssClasssSOAPs UrbanDict((s./UrbanDict/plugin.pys?s   9