Hi
Is it possible to to make the bot say something in the channel via /msg without having to be in telnet or DCC to the bot?
I've tried /msg bot say thingtosay password but no response...
Thanks!
Code: Select all
# binds #
bind msg - say pub:say
bind msg - act pub:act
# msg #
proc pub:say {nick uhost hand text} {
if {[llength [split $text]] < 2} {
putserv "PRIVMSG $nick :\002Usage\002: say #channel text"
return
}
set channel [lindex $text 0]
set msg [lrange $text 1 end]
if {![validchan $channel] || ![botonchan $channel]} {
putserv "PRIVMSG $nick :I'm not monitoring $channel or I'm not there."
return
}
putserv "PRIVMSG $channel :$msg"
}
# act #
proc pub:act {nick uhost hand text} {
if {[llength [split $text]] < 2} {
putserv "PRIVMSG $nick :\002Usage\002: act #channel text"
return
}
set channel [lindex $text 0]
set msg [lrange $text 1 end]
if {![validchan $channel] || ![botonchan $channel]} {
putserv "PRIVMSG $nick :I'm not monitoring $channel or I'm not there."
return
}
putserv "PRIVMSG $channel :\001ACTION $msg"
}
Code: Select all
# binds #
bind msg - say pub:say
bind msg - act pub:act
# msg #
proc pub:say {nick uhost hand text} {
if {[llength [split $text]] < 2} {
putserv "PRIVMSG $nick :\002Usage\002: say <who> <text>"
return
}
set who [lindex $text 0]
set msg [lrange $text 1 end]
putserv "PRIVMSG $who :$msg"
}
# act #
proc pub:act {nick uhost hand text} {
if {[llength [split $text]] < 2} {
putserv "PRIVMSG $nick :\002Usage\002: act <who> <text>"
return
}
set who [lindex $text 0]
set msg [lrange $text 1 end]
putserv "PRIVMSG $who :\001ACTION $msg"
}