2011-01-26 01:25:04 +01:00
|
|
|
See also: http://www.iso-9899.info/wiki/Candide
|
2016-01-20 17:13:33 +01:00
|
|
|
|
|
|
|
PBot requires at least Perl 5.10, especially for !cc.
|
|
|
|
|
2011-01-26 01:25:04 +01:00
|
|
|
PBot is intended for the Freenode IRC network. As such, it has not been
|
2016-01-20 17:13:33 +01:00
|
|
|
tested on other networks. Some IRC features, such as NickServ auto-join,
|
|
|
|
may need adjusting.
|
|
|
|
|
2011-01-26 01:25:04 +01: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
|
2016-01-20 17:13:33 +01:00
|
|
|
contains the PBot.pm module), you'll want to change $bothome in pbot.pl
|
2011-01-26 01:25:04 +01:00
|
|
|
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.
|
2016-01-20 17:13:33 +01:00
|
|
|
|
2011-01-26 01:25:04 +01:00
|
|
|
Then you'll need to get several modules from CPAN. If you do not have root access, see
|
|
|
|
http://perl.jonallen.info/writing/articles/install-perl-modules-without-root
|
|
|
|
|
2014-05-31 03:11:04 +02:00
|
|
|
The list of modules to install can be found in the modules file located in the same
|
|
|
|
directory as this README file. You can install the modules with the following command:
|
|
|
|
|
2016-01-20 17:13:33 +01:00
|
|
|
$ cpan $(cat MODULES)
|
2011-01-26 01:25:04 +01:00
|
|
|
|
2016-01-20 17:13:33 +01:00
|
|
|
Some quick-and-dirty info on using stdin (pbot shell after running pbot.sh):
|
2011-01-26 01:25:04 +01:00
|
|
|
|
2016-01-20 17:13:33 +01:00
|
|
|
You can type in the bot's stdin to talk in channels as the bot, e.g. by typing
|
|
|
|
'msg #pbot2 hi' from the bot's stdin.
|
2011-01-26 01:25:04 +01:00
|
|
|
|
2016-01-20 17:13:33 +01:00
|
|
|
You can send bot commands to channel by using: ~<channel> <command>
|
2011-01-26 01:25:04 +01:00
|
|
|
|
|
|
|
The bot may be backgrounded via ^Z.
|