Chapter 2. Using

Table of Contents
pls (Owner functions)
sendmessage.pl

After configuring the bot you can just run it with: ./bot.pl

pls (Owner functions)

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)

rosteradd jid

Adds jid to the roster.

subscribe jid

This sends a subscribe request to jid (Just use it if someone has not allowed the bot to see his online status.)

add jid

This basically calls rosteradd and subscribe. So you should allways call add not rosteradd

rosterremove jid

Like rosteradd you shouldn't use it.

unsubscribe jid

Sends a unsubscribe to jid. (You shouldn't use it without rosterremove)

remove jid

Basically just calls rosterremove and unsubscribe. Normally You should allways use this command to remove a jid.

save

Opens $savefile and calls every save() method of every module.

load

Opens $savefile and calls every load() method of every module.

exit

Calls the save method and exits then.

setflags jid flags

Sets the flags of jid to flags

IRCconnect server [Nick]

Connects to server. If there is no nick the bot will connect as $stdIRCnick. (The bot can connect to multiple servers.)

IRCquit

Disconnects from the active server. (May there is more documentation at the IRC module)

IRCjoin channel

Joins channel on the active IRC server

IRCpart channel

Parts from channel on the active IRC server