Copyright © 2001 Kahless
Abstract
Get latest version of documentation for the Jabber Perl Bot at http://jpb.sourceforge.net (easier: http://jpb.sf.net)
Table of Contents
Table of Contents
This is just a small guide on how to install Jabber Perl Bot.
This documentation does NOT describe how to download and extract the archieve, I think you can do it yourself ;)
Perl (Tested with v5.6.1)
Net::Jabber (Tested with 1.0023)
IPC::ShareLite (Tested with 0.08)
Well.. I hope thats all ;)
First of all you should rename the baseconfig.pl to config.pl
Then edit the config.pl and change the variables. If the description in the config.pl is not enough for you, here is something longer:
The Username which the bot should use to login (If the login is not successfull, the bot SHOULD try to register the nick)
Activates Debug mode (0 = deactivated / 1 = activated) - You may want to activate the debug mode because the bot has no other output yet.
This is for the status indicator function of the bot. If you activate saving (1 = activated) the bot will save the status of every JID in the roster into a file in the format: jid<#>status<#>message<#>last change<#>
If you have activated saving the status, the bot will write the status of all users into this file.
This is for IPC (Inter Process Communication). E.g.: If $ipctimeout is 30 the bot will wait 30 seconds until he writes 'ready' into the shared memory. (means that the programm, which wants to communicate with the bot has 30 seconds to read the answer of the bot.)
This variable just controls the style of the output of the Debug messages (for hashes). If you have no idea about perl, you may not change this flag and if you want to know more look at the Data::Dumper documentation: http://search.cpan.org/doc/GSAR/Data-Dumper-2.101/Dumper.pm#Configuration_Variables_or_Methods.
The Hostname of your PC. It is used by Net::IRC and I do not really know how it works, but if you have no hostname (like me) you can set this to 1 and the Net::IRC ignore it. If you set this to 0 the Net::IRC will read the system configuration
Table of Contents
After configuring the bot you can just run it with: ./bot.pl
Owner functions are sent as a chat message via the jabber server. They allways start with pls and then the command. (Your JID have to be $owner)
This sends a subscribe request to jid (Just use it if someone has not allowed the bot to see his online status.)
Basically just calls rosterremove and unsubscribe. Normally You should allways use this command to remove a jid.
Connects to <server>. If there is no nick the bot will connect as $stdIRCnick. (The bot can connect to multiple servers.)