FANDOM


Want to know more about bots, how to create one, and how to operate it? Hopefully, this will answer most of your questions.

What are bots?

A bot, in its most basic form[1] (the form I’ll be discussing), is an alternate account of a user that has special scripts installed in order to perform automated edits for the benefit of the community without clogging WikiActivity[2]. For more information about bots, go here.

How can I make a bot?

The process to making a bot is easy, much easier than you think. Just follow these simple steps:

1. Create an alternate account. It does not need to have the word “bot” in its username.

2. Install the below JavaScript. This can done globally (if the bot will be used on multiple wikis) at User:YOURBOTSNAME/global.js (editable at Community Central) or locally (if the bot will be used on just one wiki) at User:YOURBOTSNAME/common.js (editable at the specific wiki). Once this is installed, your bot is almost ready to roll.

/***********************************************************************/
/************************ Import Configurations ************************/
/***********************************************************************/
/* Mass Effect Configs */
batchDeleteDelay = 250;
massCategorizationDelay = 500;
massProtectDelay = 500;
massRedirectDelay = 500;
massRenameDelay = 500;
massRenameSummary = "Renaming Pages";
nullEditDelay = 250;
WHAMDelay = 500;
//End MEC*/
 
/***********************************************************************/
/******************************* Imports *******************************/
/***********************************************************************/
importArticles({
    type: 'script',
    articles: [
        'u:dev:AjaxBatchDelete/code.2.js',
        'u:dev:AjaxBathUndelete.js',
        'u:dev:AutoEditPages/code.js',
        'u:dev:CleanWantedFiles/code.js',
        'u:dev:Linksweeper/code.js',
        'u:dev:MassCategorization/code.js',
        'u:dev:MassEdit/code.js',
        'u:dev:MassNullEdit/code.js',
        'u:dev:MassProtect/code.js',
        'u:dev:MassRedirect/code.1.js',
        'u:dev:MassRename/code.js',
        'u:dev:MassRenameRevert/code.js',
        'u:dev:WHAM/code.2.js',
    ]
});//End Imports*/

3. Contact FANDOM and ask them to flag your alt account as a bot. Note that only Administrators can ask FANDOM to do this, so if you aren’t an Administrator, you’ll need to ask them to do it. In addition, bots should always be flagged with the approval of the whole community. Note: if possible, Admin rights increase a bot’s functionality, allowing it to use some of the restricted scripts I list below.

How can I operate a bot?

BottomToolBar

The bottom menu you should see.

So now you’ve got a bot. But what can you do with it?

  1. Log into your bot’s account.
  2. Look at the bottom of your screen. You should see a menu across the bottom.
  3. Click either on My Tools, MassEdit, or MassCreate. If you click on My Tools, then click on the application you wish to use.
  4. Use your applications in useful ways and enjoy!
BottomTools

The “My Tools” menu.

The applications are listed below with a brief description.

  • AjaxBatchDelete: post a list of pages you want to delete and watch as they are quickly dispatched.
  • AjaxBatchUndelete: basically the opposite of AjaxBatchDelete.
  • CleanWantedFiles: allows you to remove broken file links on Special:WantedFiles.
  • LinkSweeper: a script to remove a certain link from a list of pages.
  • MassCategorization: add, remove, or replace categories from a list of pages.
  • MassEdit: append or prepend content. Can also find and delete or find and replace content, as well as create new pages. Can take a list of pages, pages from a namespace, or pages from a category.
  • MassNullEdit: null-edits a list of pages (forcing a refresh of things like templates).
  • MassProtect: protect a list of pages.
  • MassRedirect: redirect a list of pages.
  • MassRename: rename a list of pages, almost always to a different namespace.
  • MassRenameRevert: undo multiple bad renames.
  • WHAM: allows admins to basically eradicate a bad user’s presence on the wiki.

How can I become more advanced?

The scripts I have listed here are fairly basic and very easy to use. AutoWikiBrowser and Pywikibot are two more advanced bot systems that are still fairly easy to use. For more help with these, check out the Community Central Forum.

References

  1. See “How can I become more advanced?” for information on creating a more complex bot.
  2. Only FANDOM can flag accounts as bots and this is only done at an Administrator’s request.

Note: this blog was originally published on the Diep.io wiki.