Jump to content

Manual:Wikibot/RPEDIRCBot

From mediawiki.org
Manual on MediaWiki Tools
RPEDIRCBot
Release status: experimental
Implementation Bot
Description Updates the rped_page table using information on page creations, page moves, deletions, and undeletions from the Wikipedia Recent Changes IRC channel.
Author(s) Tisane
Latest version 1.0.0
MediaWiki 1.16+
License GPL
Download Subversion [Help ]
Browse source code

There is an IRC bot, RPEDIRCBot.php, that runs as a daemon. It inserts and deletes from the rped_table as page creations, deletions, and restorations appear on irc://irc.wikimedia.org/en.wikipedia. It is intended for wikis that use Extension:RPED.

Usage

[edit]

Sample configuration settings

[edit]

Here are some sample configuration settings for wikibot.config.php:

$wikibotSetting['user']['*']['YourWikiName']='YourBotName';
$wikibotSetting['pass']['*']['YourWikiName']='YourPassword';
$wikibotSetting['nick']['YourBotName']['YourWikiName']="YourNickname";
$wikibotSetting['ident']['YourBotName']['YourWikiName']="YourBotName";
$wikibotSetting['chan']['*']['*']="#en.wikipedia";
$wikibotSetting['realname']['YourBotName']['*']="Your Real Name";
$wikibotSetting['port']['*']['*']=6667;
$wikibotSetting['host']['*']['*']="irc.wikimedia.org";
$wikibotSetting['startline']['*']['YourWikiName']=":rc!~rc@127.0.0.1 PRIVMSG #en.wikipedia";
$wikibotSetting['apiurl']['*']['YourWikiName']='http://yourwikiname.org/w/api.php';
$wikibotSetting['queryurl']['*']['YourWikiName']='http://yourwikiname.org/w/query.php';
$wikibotSetting['indexurl']['*']['YourWikiName']='http://yourwikiname.org/w/index.php';
$wikibotSetting['deleteline']['*']['YourWikiName']="Special:Log/delete";
$wikibotSetting['moveline']['*']['YourWikiName']="Special:Log/move";
$wikibotSetting['deletedword']['*']['YourWikiName']='deleted';
$wikibotSetting['thenewcharacter']['*']['YourWikiName']='N';

Command line arguments

[edit]

The first argument is the bot name; the second argument is the wiki name; and the third argument can be "nodaemon" is you do not want to daemonize the bot. E.g.,

php RPEDIRCBot.php YourBotName YourWikiName

See also

[edit]