Bot: Difference between revisions
mNo edit summary |
|||
(14 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{V}} | ||
__NOINDEX__ | |||
Coolrox95 | '''Note:''' As of [[V0.17.0]], the bot has been discontinued in favour of automating page updates using Lua modules. | ||
---- | |||
Coolrox95 created a bot for the wiki. The main purpose of the bot is to upload all the item and monster pages to the wiki, and maintain them as needed. The source code for the bot can be found [https://github.com/MelvorIdle/Melvor-Wiki-Bot here] (Forked from the original bot); | |||
== GOAL == | == GOAL == | ||
Line 9: | Line 12: | ||
* Make sure proper templates, categories and menus are added to each page. | * Make sure proper templates, categories and menus are added to each page. | ||
== V0.16 Changes Required == | == V0.16.1 Changes Required == | ||
* <del>Import new global game data variables from page scope into content script scope</del> | * <del>Import new global game data variables from page scope into content script scope</del> | ||
* <del>Add item uses for things used in new magic</del> | * <del>Add item uses for things used in new magic</del> | ||
* <del>Add alt magic as an item source</del> | * <del>Add alt magic as an item source</del> | ||
* <del>Add item sources for crown components</del> | * <del>Add item sources for crown components</del> | ||
* Create pages for new spell types and rework [[Template:Spell]] to include combo runes | * <del>Create pages for new spell types and rework [[Template:Spell]] to include combo runes</del> | ||
* <del>Create maintenance functions for new spell type pages</del> | |||
* <del>Upload art for new spell types</del> | * <del>Upload art for new spell types</del> | ||
* Create tables for new spell types ( | * <del>Create tables for new spell types (Auroras, Curses, Ancient Magicks, Alt-magic)</del> | ||
* <del>Create tables for new runecrafting sections (Combo runes, stave+wands, air,water,earth and fire gear)</del> | * <del>Create tables for new runecrafting sections (Combo runes, stave+wands, air,water,earth and fire gear)</del> | ||
* Create pages for pets | * <del>Create pages for pets</del> | ||
* <del>Create maintenance functions for pet pages</del> | |||
* <del>Upload art for pets</del> | * <del>Upload art for pets</del> | ||
* <del>Add pets and new spell types to page disambiguation code to prevent edit conflicts</del> | * <del>Add pets and new spell types to page disambiguation code to prevent edit conflicts</del> | ||
* <del> Add feathers and party hat to shop materials </del> | * <del> Add feathers and party hat to shop materials </del> | ||
* Add prerequisite dungeons to dungeon pages. <code>requiresCompletion: DungeonID</code> in DUNGEONS array. | |||
== TODO == | == TODO == | ||
Line 30: | Line 36: | ||
== Current Features == | == Current Features == | ||
* Fill out the [[Template:Item|Item Template]] | * Create pages and maintain their templates | ||
** Fill out the [[Template:Item|Main Item Template]] | |||
** Add the [[Template:ArmourStats|Armour Stats Template]] and [[Template:WeaponStats|Weapon Stats Template]] to item pages when necessary | ** Add the [[Template:ArmourStats|Armour Stats Template]] and [[Template:WeaponStats|Weapon Stats Template]] to item pages when necessary | ||
** Add the [[Chest Drop Tables|Chest Drop Table]] for items that can be opened | ** Add the [[Chest Drop Tables|Chest Drop Table]] for items that can be opened | ||
** Add the healing amount for items that can be consumed | ** Add the healing amount for items that can be consumed | ||
* | ** Adds the Item Source Template for that specific item | ||
* Creates Item source templates for each item, and maintains them. | |||
** See [[:Category:Item Sources]] for a full list | |||
* Create pages for each Monster and maintain their templates | |||
** Fills in the [[Template:Monster|Monster Template]] | |||
** Currently some monsters are named the same while having a different ID. This has been resolved by adding combat level to the page names for monsters with duplicate names | ** Currently some monsters are named the same while having a different ID. This has been resolved by adding combat level to the page names for monsters with duplicate names | ||
* Create pages for each Combat Area and Dungeon | * Create pages for each Combat Area, Slayer Area and Dungeon and maintain their templates | ||
* Create pages for each Prayer | ** Templates used are: [[Template:Dungeon|Dungeon template]], [[Template:SlayerArea|Slayer Area Template]] and [[Template:CombatArea|Combat Area Template]] | ||
* Create pages for each Spell | * Create pages for each Prayer and maintain their templates | ||
* Create pages for some Shop Upgrades | ** Fills in the [[Template:Prayer|Prayer template]] | ||
* Create pages for each Standard Spell, Aurora, Curse, Alt. Magic and Ancient Magick, and maintains their templates | |||
** Fills in the following templates: [[Template:Spell]], [[Template:Aurora]], [[Template:Curse]], [[Template:AltMagic]], [[Template:AncientMagick]] | |||
* Creates pages for each Pet and maintains their templates | |||
** Fills in [[Template:Pet]] | |||
* Create pages for some Shop Upgrades and maintains their templates | |||
** Fills in [[Template:Upgrade]] | |||
* Create template pages for auto-generated tables. | * Create template pages for auto-generated tables. | ||
* | ** See [[:Category:Tables]] for a full list | ||
* Uploads/Updates images for Dungeons, Combat Areas, Slayer Areas, Items, Monsters, Spells, Upgrades and | * Uploads/Updates images for Dungeons, Combat Areas, Slayer Areas, Items, Monsters, Spells, Upgrades, Prayers and Pets. | ||
* Updates bot generated pages without interfering with user added descriptions, and detects if the underlying data has changed. | * Updates bot generated pages without interfering with user added descriptions, and detects if the underlying data has changed. | ||
** If the data has not changed or if the page does not contain any user made content, the game version of the page is automatically updated. | ** If the data has not changed or if the page does not contain any user made content, the game version of the page is automatically updated. | ||
Feel free to add tasks or remarks to this page. | Feel free to add tasks or remarks to this page. |
Latest revision as of 09:41, 31 December 2021
Note: As of V0.17.0, the bot has been discontinued in favour of automating page updates using Lua modules.
This page is up to date (v1.2.2). |
Coolrox95 created a bot for the wiki. The main purpose of the bot is to upload all the item and monster pages to the wiki, and maintain them as needed. The source code for the bot can be found here (Forked from the original bot);
GOAL
The goal of the wiki bot is to:
- Automatically fill out the wiki using the game's code and objects.
- Automatically update changed images.
- Make sure proper templates, categories and menus are added to each page.
V0.16.1 Changes Required
Import new global game data variables from page scope into content script scopeAdd item uses for things used in new magicAdd alt magic as an item sourceAdd item sources for crown componentsCreate pages for new spell types and rework Template:Spell to include combo runesCreate maintenance functions for new spell type pagesUpload art for new spell typesCreate tables for new spell types (Auroras, Curses, Ancient Magicks, Alt-magic)Create tables for new runecrafting sections (Combo runes, stave+wands, air,water,earth and fire gear)Create pages for petsCreate maintenance functions for pet pagesUpload art for petsAdd pets and new spell types to page disambiguation code to prevent edit conflictsAdd feathers and party hat to shop materials- Add prerequisite dungeons to dungeon pages.
requiresCompletion: DungeonID
in DUNGEONS array.
TODO
- Add bones as a loot source to item source templates
- Add Mastery token sources to item source templates
- Fetch and parse each page to detect if proper categories, templates and menus are used.
- Automatically create disambiguation pages for bot generated pages with name conflicts
Current Features
- Create pages and maintain their templates
- Fill out the Main Item Template
- Add the Armour Stats Template and Weapon Stats Template to item pages when necessary
- Add the Chest Drop Table for items that can be opened
- Add the healing amount for items that can be consumed
- Adds the Item Source Template for that specific item
- Creates Item source templates for each item, and maintains them.
- See Category:Item Sources for a full list
- Create pages for each Monster and maintain their templates
- Fills in the Monster Template
- Currently some monsters are named the same while having a different ID. This has been resolved by adding combat level to the page names for monsters with duplicate names
- Create pages for each Combat Area, Slayer Area and Dungeon and maintain their templates
- Templates used are: Dungeon template, Slayer Area Template and Combat Area Template
- Create pages for each Prayer and maintain their templates
- Fills in the Prayer template
- Create pages for each Standard Spell, Aurora, Curse, Alt. Magic and Ancient Magick, and maintains their templates
- Fills in the following templates: Template:Spell, Template:Aurora, Template:Curse, Template:AltMagic, Template:AncientMagick
- Creates pages for each Pet and maintains their templates
- Fills in Template:Pet
- Create pages for some Shop Upgrades and maintains their templates
- Fills in Template:Upgrade
- Create template pages for auto-generated tables.
- See Category:Tables for a full list
- Uploads/Updates images for Dungeons, Combat Areas, Slayer Areas, Items, Monsters, Spells, Upgrades, Prayers and Pets.
- Updates bot generated pages without interfering with user added descriptions, and detects if the underlying data has changed.
- If the data has not changed or if the page does not contain any user made content, the game version of the page is automatically updated.
Feel free to add tasks or remarks to this page.