Page 1 of 1

[Abandoned] Wikipedia by Pri

Posted: Sat May 01, 2010 6:44 pm
by Pri
Wikipedia by Pri v0.5a (2nd August 2010)
(17.02 KiB) Downloaded 317 times
As of the 20th of October 2012 this script no longer works and will not receive any new updates to make it work again. If you want to fix this script to work with Wikipedia's new API you are more than welcome to do so.


Like this script? Check out some of my other awesome scripts!

  • You may host this script as is.
  • You may alter the script however you want, but if you propagate your modified version I'd like you to share it publicly :) - If you don't that's cool too.
Setup Difficulty: Easy
  • You must place the file in your Metis Plugins folder & edit your mxc.xml to add the line <include file=""/>
How do I upgrade from an old version?
  • Simply replace the old file with the new one from the top of this post, then restart your bot. Alternatively if you don't want to restart your bot you can enter /mxc load in your bots main chat window, this will make it reload all your plugins without restarting.
Requirements: Features:
  • Script can query Wikipedia directly itself
  • Can create its own Folders and Files for storage of previously queried data
  • Can automatically notify you of new versions of the script
  • Enables you to set output of the script to Private (Only those who use command see results)
  • Supports Ouka, FXServer, WCS, RCS, RSWCS and ZCS out of the box
  • Includes a Usergroup for you to lock the commands to only users you trust
  • Question: I keep getting this error "unknown operator type readweb will default to +" what does it mean?
  • Answer: It means you have an older version of Metis installed. Please download version 2.8 of Metis from the top of this page.
  • ---
  • Question: I keep getting this message "</b>" what does it mean?
  • Answer: It means you have an older version of Metis installed. Please download version 2.8 of Metis from the top of this page.
  • ---
  • Question: Sometimes when I search for something it says 'This may refer to:' and nothing else
  • Answer: This is due to Wikipedia having many different pages that could be the page your looking for. The script was not designed with Multiple Pages in mind (Just me being lazy :P) which is why this happens. Don't expect an updated version with Multi-page support any time soon though.
Commands Included:
  • !Wiki [Query] - Lookup information about something from Wikipedia
  • !PublicWiki - Set the result output to the entire room
  • !PrivateWiki - Set the result output to only users who perform the query
  • !SetWikiColour [Number] - Set the menu colours to something other than the default Green (#c4#) to better fit your room
Need to Know Stuff:
  • As above it requires version 2.8 of Metis. If you do not use 2.8 (Or a better version than 2.8) Then this script will not work at all.
  • I am happy to offer you 1 to 1 support in your room with this script if you need it, you can find me in the Renegades room on MX
  • 30th of July 2010: Moved " and & off Server and in to the Code through suggestion by Richy
  • 19th of July 2010: Fixed a bug where !PrivateIMDB failed to detect WCS 1.8.8 due to a bug in the server
  • 30th of April 2010: Added Colour Theming
  • 30th of April 2010: Added !PublicWiki and !PrivateWiki support
  • 1st of May 2010: First release 0.1a
Thanks Testers:
  • Wavparty from LATENight Movies (Tested Script)
Past Release:

Re: Wikipedia by Pri

Posted: Fri May 14, 2010 10:39 am
by ?Alice
Thank you. This is a very handy script and seems to be working just fine 8-)

Re: Wikipedia by Pri

Posted: Sat May 15, 2010 3:57 am
by chops
of course it does Pri don't release it till its tested and up to his standers

Re: Wikipedia by Pri

Posted: Sun May 16, 2010 7:52 am
by ?Alice
Not for one minute implying that he did... let me rephrase... 'works with minimal effort' i.e. user friendly - for people that need that kinda thing, like myself :roll:

Re: Wikipedia by Pri

Posted: Mon Jul 19, 2010 2:22 am
by Pri
I just wanted to elaborate on why there has been a new version to fix what has been said in the update as a 'WCS v1.8.8' bug.

In this version of the server it for some reason does not report itself as 1.8.8 to RoboMX. This may be because the string is to long. In any event, this didn't come up in my testing as I tested with WCS 1.8.3 which is correctly detected. The other day a user of my Urban Dictionary script (which isn't released as of this post but will be soon!) was unable to get the !PrivateUrban command to work correctly and after some diagnosing we found it also affected IMDB and Wiki as they all use the same technique to detect the server version.

So this update performs a more rigorous search for WCS in the event that no server has been detected and it will find all past and future WCS versions 100%