My bot should react when someone in channel write for example: "Bot you are stupid".
Code: Select all
bind pub - "Bot you are stupid" Stupid
proc Stupid {nick host hand chan rest} {
puthelp "privmsg $chan :Only you."
}
Code: Select all
bind pub - "Bot you are stupid" Stupid
proc Stupid {nick host hand chan rest} {
puthelp "privmsg $chan :Only you."
}
Code: Select all
tag when posting logs, code
Code: Select all
tag when posting logs, code
Code: Select all
bind pub - "*Bot you are stupid*" Stupid
proc Stupid {nick host hand chan rest} {
puthelp "privmsg $chan :Only you."
}
So you'd understand why it workd.PUBM (stackable)
bind pubm <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <text>
Description: just like MSGM, except it's triggered by things said
on a channel instead of things /msg'd to the bot. The mask is
matched against the channel name followed by the text and can
contain wildcards. Also, if a line triggers a PUB bind, it will not
trigger a PUBM bind.
Module: irc