Difference between revisions of "Update lua function list"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Automatically == | == Automatically == | ||
− | Lua function list for Mudlet's autocompletion is updated automatically every Friday. | + | Lua function list for Mudlet's autocompletion is updated automatically every Friday. To update it on demand, click on [https://github.com/Mudlet/Mudlet/actions/workflows/update-autocompletion.yml Run workflow]. |
− | == By hand == | + | == By hand (not recommended) == |
This will download the list of all lua functions from Mudlet wiki and prepare it for usage in Mudlet's autocomplete functionality | This will download the list of all lua functions from Mudlet wiki and prepare it for usage in Mudlet's autocomplete functionality | ||
Latest revision as of 07:29, 18 March 2023
Automatically
Lua function list for Mudlet's autocompletion is updated automatically every Friday. To update it on demand, click on Run workflow.
By hand (not recommended)
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
- 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