Bot
From Melvor Idle
Coolrox95 is working on 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;
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 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 runes- Create maintenance functions for new spell type pages
Upload 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 pets- Create maintenance functions for pet pages
Upload 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
- Fills in the following templates: Template:Spell, Template:Aurora, Template:Curse, Template:AltMagic, Template:AncientMagick
- Creates pages for each Pet
- Fills in Template:Pet
- Create pages for some Shop Upgrades
- 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.