Update lua function list

From Mudlet
Revision as of 19:14, 2 February 2019 by Kebap (talk | contribs) (Created page with "This will download the list of all lua functions from Mudlet wiki and prepare it for usage in Mudlet's autocomplete functionality * Get the script - download from dicenes scr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will download the list of all lua functions from Mudlet wiki and prepare it for usage in Mudlet's autocomplete functionality

  • Get the script - download from dicenes scraping script here: https://gist.github.com/dicene/b714660b13da4bd7767f89182476af4c
  • Paste the script - Create a new Mudlet script called "scapeit", paste the contents in there, and activate
  • Run the script - write in Mudlet's main input line: lua scrapeit()
  • Wait for Mudlet to complete - Script will download data from Wiki and run the scraper on it
  • Get the results - There will be a new user window, also a new file was created in Mudlet's config dir (you can find it by running "lua getMudletHomeDir()" and remove the parts beginning with "/profiles/" - Both will have the same contents. Select all and copy to clipboard
  • Prettify the results - We use a website for this and recommend http://novicelab.org/jsonabc/ - Preferrably it will also sort the results alphabetically, so they are easier to compare with past versions in revision control.
  • Save the results - Copy & paste the prettified json back into the lua-function-list.json file mentioned above or save it elsewhere.
  • Include the results - Create a new PR for Mudlet to include this in /src/lua-function-list.json in the next release version