From: SourceForge.net <no...@so...> - 2010-05-21 13:28:57
|
Patches item #3005312, was opened at 2010-05-21 15:28 Message generated for change (Tracker Item Submitted) made by raven24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302241&aid=3005312&group_id=2241 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: raven24 (raven24) Assigned to: Nobody/Anonymous (nobody) Summary: extended wikipedia module Initial Comment: This patch makes it possible to use a custom wiki for article lookup other than wikipedia. Therefore an additional config variable is introduced in files/infobot.config # [str] set an alternative wiki for wiki-lookups (must be a MediaWiki) set wikiBaseUrl http://http://www.wikipedia.org/wiki/ The default setting of this should be wikipedia's url, in order to keep the current behaviour. Additionally the 'wiki' command is mapped to a new method in the module that sets the url to the specified wiki and then continues as before. The 'wikipedia' command always uses wikipedia, regardless of what is specified in the config. With this patch the module is also able to look up articles in different languages. The default is english (as 'www' is being redirected to 'en' by Wikipedia). The new syntax is ~wikipedia Test -> looks up the english "Test" article ~wikipedia en Test -> also looks up the english "Test" article ~wikipedia de Test -> looks up the german "Test" article The above changes are adressed in the help messages and have been tested as much as I was able to; also there were some minor changes in how the LWP::UserAgent module is used. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302241&aid=3005312&group_id=2241 |