2010-05-25 05:20:56 +02:00
|
|
|
More information coming soon. Work in progress.
|
2010-05-25 07:36:13 +02:00
|
|
|
--------------------------
|
|
|
|
See also: http://www.iso-9899.info/wiki/Candide
|
|
|
|
--------------------------
|
2010-05-25 08:16:28 +02:00
|
|
|
PBot requires Perl 5.10, especially for !cc
|
|
|
|
--------------------------
|
2010-05-27 11:20:07 +02:00
|
|
|
PBot is intended for the Freenode IRC network. As such, it has not been
|
2010-06-04 06:38:42 +02:00
|
|
|
tested on other networks. Some IRC features, such as NickServ auto-join, may need adjusting.
|
2010-05-27 11:20:07 +02:00
|
|
|
--------------------------
|
2010-05-25 05:20:56 +02:00
|
|
|
The first thing you'll want to do is edit pbot.pl and change the default
|
|
|
|
settings:
|
|
|
|
|
|
|
|
* If you did not extract/checkout PBot into ~/pbot (where ~/pbot/PBot
|
|
|
|
contains the PBot.pm module), you'll want to change $pbothome in pbot.pl
|
|
|
|
to point to the directory that contains the PBot, config, data, etc directories.
|
|
|
|
|
|
|
|
* Change the IRC settings in pbot.pl so that the bot-nick and identify password are
|
|
|
|
associated with a registered NickServ account, if you want channel auto-join to succeed.
|
2010-05-25 07:36:13 +02:00
|
|
|
--------------------------
|
2010-05-27 11:20:07 +02:00
|
|
|
Then you'll need to get several modules from CPAN. If you do not have root access, see
|
2010-05-25 07:36:13 +02:00
|
|
|
http://perl.jonallen.info/writing/articles/install-perl-modules-without-root
|
|
|
|
|
2010-05-27 11:20:07 +02:00
|
|
|
Net::IRC
|
|
|
|
AppConfig::Std
|
|
|
|
Data::Dumper
|
|
|
|
Getopt::Std
|
|
|
|
HTML::Entities
|
|
|
|
HTML::FormatText
|
|
|
|
HTML::Parse
|
|
|
|
IPC::Open2
|
|
|
|
LWP::Simple
|
|
|
|
LWP::UserAgent
|
|
|
|
LWP::UserAgent::WithCache
|
|
|
|
Net::Dict
|
|
|
|
SOAP::Lite
|
|
|
|
Text::Autoformat
|
|
|
|
Text::Balanced
|
|
|
|
URI::Escape
|
|
|
|
WWW::Wikipedia
|
|
|
|
XML::RSS
|
2010-05-27 00:57:33 +02:00
|
|
|
--------------------------
|
2010-05-25 07:36:13 +02:00
|
|
|
Some quick-and-dirty info on using stdin (pbot shell after running pbot.sh):
|
2010-05-25 07:24:09 +02:00
|
|
|
|
2010-05-27 11:20:07 +02:00
|
|
|
< pragma_> you can type in the bot's stdin to talk in channels as the bot
|
|
|
|
< candide> hi
|
|
|
|
< pragma_> that was typing 'msg #pbot2 hi' from the bot's stdin
|
|
|
|
< pragma_> you can send bot commands to channel by using ~channel command
|
|
|
|
< pragma_> like ~channel kick <args>
|
|
|
|
< pragma_> because kick has to be used in a channel
|
|
|
|
< pragma_> and you can still background the bot with ^Z
|
2010-05-25 07:36:13 +02:00
|
|
|
--------------------------
|
|
|
|
Coming soon to README:
|
|
|
|
|
|
|
|
* Description of each PBot module, for customisation.
|
|
|
|
--------------------------
|
|
|
|
Todo:
|
2010-05-25 07:24:09 +02:00
|
|
|
|
2010-05-25 07:36:13 +02:00
|
|
|
* Add SSL and port options to pbot.pl.
|