002
2021-12-17
jrmu
========
004
2021-12-17
jrmu
putserv BOT TEXT
006
2021-12-17
jrmu
Sends text to the IRC server. Returns nothing.
009
2021-12-17
jrmu
========
011
2021-12-17
jrmu
bind TYPE FLAGS MASK PROC
013
2021-12-17
jrmu
Binds perl procedures to events. Currently flags and mask are ignored. Returns the name of the command that was added.
017
2021-12-17
jrmu
bind "MSG" FLAGS COMMAND PROC
018
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE TEXT
020
2021-12-17
jrmu
Called on /msg commands. The first word of the msg is the command, and the rest
021
2021-12-17
jrmu
the text.
023
2021-12-17
jrmu
bind("msg", "", "admin", $proc);
024
2021-12-17
jrmu
sub proc {
025
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $text) = @_;
031
2021-12-17
jrmu
bind "PUB" FLAGS COMMAND PROC
032
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL TEXT
034
2021-12-17
jrmu
bind("pub", "", "help", $proc);
035
2021-12-17
jrmu
sub proc {
036
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
040
2021-12-17
jrmu
Called on commands in a channel. The first word of the msg is the command, and the rest
041
2021-12-17
jrmu
the text.
043
2021-12-17
jrmu
3. MSGM (stackable)
045
2021-12-17
jrmu
bind "MSGM" FLAGS MASK PROC
046
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE TEXT
048
2021-12-17
jrmu
bind("msgm", "", "", $proc);
049
2021-12-17
jrmu
sub proc {
050
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $text) = @_;
054
2021-12-17
jrmu
Match all text from a /msg. MSGM binds are processed before MSG binds.
056
2021-12-17
jrmu
4. PUBM (stackable)
058
2021-12-17
jrmu
bind "PUBM" FLAGS MASK PROC
059
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE CHAN TEXT
061
2021-12-17
jrmu
bind("pubm", "", "", $proc);
062
2021-12-17
jrmu
sub proc {
063
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
067
2021-12-17
jrmu
Match all text from a message on a channel. PUBM binds are processed before PUB binds.
069
2021-12-17
jrmu
5. NOTC (stackable)
071
2021-12-17
jrmu
bind "NOTC" FLAGS MASK PROC
072
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE TEXT DEST
074
2021-12-17
jrmu
bind("notc", "", "", $proc);
075
2021-12-17
jrmu
sub proc {
076
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $text, $dest) = @_;
080
2021-12-17
jrmu
Called when a notice is sent. $dest is either the bot's nickname or channel.
081
2021-12-17
jrmu
You should not respond to a /notice, so this is useful for logging and analytics.
083
2021-12-17
jrmu
6. JOIN (stackable)
085
2021-12-17
jrmu
bind "JOIN" FLAGS MASK PROC
086
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL
088
2021-12-17
jrmu
bind("join", "", "", $proc);
089
2021-12-17
jrmu
sub proc {
090
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $chan) = @_;
094
2021-12-17
jrmu
Called when someone joins a channel.
096
2021-12-17
jrmu
7. PART (stackable)
098
2021-12-17
jrmu
bind "PART" FLAGS MASK PROC
099
2021-12-17
jrmu
procname BOT NICK USERHOST HANDLE CHANNEL TEXT
101
2021-12-17
jrmu
bind("part", "", "", $proc);
102
2021-12-17
jrmu
sub proc {
103
2021-12-17
jrmu
my ($bot, $nick, $userhost, $hand, $chan, $text) = @_;
107
2021-12-17
jrmu
Called when someone parts a channel.