Quantcast User:Foxbot - WoWWiki - Your guide to the World of Warcraft
Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

User:Foxbot

From WoWWiki

Jump to: navigation, search
Image:Icon-addon-48x48.png

This user is a Bot controlled by Foxlit (Contribs)

If the program is malfunctioning, or you disagree with some changes, please drop down a note on the Owner's talk page.
If you wish to request bot-assisted edits, see WoWWiki:Bot requests.

Foxbot is a wiki bot written in Lua by foxlit; you can find both Foxbot and foxlit on IRC.

Contents

What does it do?

Foxbot's wiki related functions mainly concern importing or updating tooltips from the Armory into item pages on WoWWiki. There are a few caveats that may apply regardless of how you invoke Foxbot:

  • Foxbot can not properly detect professions responsible for crafting items; any sort of "combine this item with ..." effects also share the same difficulty. Relevant pages are tagged with User:Foxbot/FixPlease/Crafting and require human attention.
  • Foxbot operates in two modes: full-page replace (replaces all current content on the page with automatically generated content) and tiponly mode (replaces the tooltip code only).
  • World drop items typically aren't recognized as such and may leave Stub:Item in the source section.

Using the Wiki queue

Foxbot, when online, automatically scans the queue as kept by the wiki. To add a page to the queue, tag it with User:Foxbot/UpdateItem (see detailed syntax on that page).

  • Pages that do not have the same name as they should contain may pose an issue for tagged updates. Foxbot can resolve item ID based on the use of {{elinks-item}} on the page, but is otherwise helpless during item name -> item id translation.

Through IRC

Foxbot is can usually be found in the WoWWiki IRC channel (or generally on the freenode network); you can ask it to update an item page/tooltip by either messaging it directly, or addressing it in a channel (prefix your message with "Foxbot, " or "!"). The following commands are relevant:

!item <[options]> <ItemNameOrIDList>
Request Foxbot to process one or more items.
options: optional, comma-delimited list enclosed in square brackets. The following options exist:
  • sandbox to save the generated page to a sandbox rather than the proper location.
  • tiponly to only replace the tooltip in the relevant page (default mode is to replace the entire page).
ItemNameOrIDList: comma-delimited list of item names or item IDs (intermixable) to process.
ItemNameOrID item name or ID.
!sup
Reports the current status of the Foxbot queue (processing requests may be throttled in some situations).

It cooks breakfast, too!

There are a number of additional unrelated features:

On IRC:

!wikistats 
Looks up data in Special:Statistics and relays to IRC (jobqueue, page count and so on).

On WoWWiki:

{{User Editcount}} 
Automatically updates any Editcount userbox in userspace (see below for sample). Get one today!
{{correct2category}} 
Updates category tags on pages that end up in categories tagged with this template.

Experimental stuff

!finditem allows you to list items matching particular criteria. A few examples:

!finditem item level = 151 lists items of item level 151
!finditem redSockets > 0 && yellow sockets = 1 items with more than 0 red sockets and one yellow socket.
!finditem [sort:durability desc] 1=1 Items with most durability.
!finditem [show:dps] [order:dps desc] quality=5 Legendary items ordered by dps.
!finditem [sort:item level asc] [show:sell] sell > 60000 Sell for more than 6g to vendors.

So, general form: !finditem [sort:field name asc/desc] [show:field name] [show:another field name] ... boolean expression.

How does it work?

Foxbot is written in Lua, based loosely on KasoBot. Foxbot consists of a core and a number of modules; core mainly concerns itself with interactions between modules; while modules provide functionality (wiki, irc, armory stacks being examples of separate modules) that may be required by other modules. New modules may be added, current modules reloaded and old modules unloaded without restarting Foxbot or losing individual module states.

Foxbot's armory->wiki conversion works by parsing the Armory-supplied XML data into a table, and transforming that table into tooltip code using a series of lookups, formats and other function calls.

Boxes

49044 This user employs peasants to count his contributions.