Chris G's botclasses is a PHP MediaWiki bot framework (formerly?) hosted at the Toolserver.
They are derived from the wikibot.classes
used by ClueBot.
See also w:User:RMCD bot/botclasses.php and https://github.com/legoktm/harej-bots/blob/master/botclasses.php
Bots
HelloWorldBot.php
<?php
/*
* HelloWorldBot.php
* <translate nowrap><!--T:5--> This bot edits Wikipedia:Sandbox.</translate>
/*
/* <translate nowrap><!--T:6--> Setup my classes.</translate> */
include( 'botclasses.php' );
$wiki = new wikipedia;
$wiki->url = "https://en.wikipedia.org/w/api.php";
$wiki->setUserAgent( 'User-Agent: FooBot (https://mediawiki.org/wiki/User:FooBot)' );
/* <translate nowrap><!--T:7--> All the login stuff.</translate> */
$user = 'REMOVED';
$pass = 'REMOVED';
$wiki->login( $user, $pass );
/* <translate nowrap><!--T:8--> Test edit.</translate> */
$page = 'Wikipedia:Sandbox';
$content = 'Hello, world!';
$summary = 'This is a sample bot edit.';
$wiki->edit( $page, $content, $summary );
Other bots
AllCategoryMembersBot.php
— Retrieves a list of all members of a category and stores that list in a text file.AllPagesBot.php
— Retrieves a list of all files on the wiki and stores that list in text files.DownloadAllImagesBot.php
— Downloads all images from a wiki.ExportAllPagesBot.php
— Exports all pages from a wiki and stores them in XML files.FixFileDescriptionPagesBot.php
— Fixes file description pages whose contents were buried in the history when a description page import was done after the image import.ParseMirroredWikiIndexBot.php
— Parses pages from the mirrored wikiindex to populate theparse_mirrored_wikiindex_bot.parsed_mirrored_wikiindex
table.UploadBot.php
— Upload a file.- mediawiki-botclasses - Modification of botclasses to show wiki and category statistics. See more info.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.