Manual:Wikibot/RPEDIRCBot
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
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
editSample configuration settings
editHere 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
editThe 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