I search the forum, but don't find A proper answer on it.
I'm also A newbie in tlc.
Some friends of mine compiled A fun.tcl (bot react on pub-commands).
Now I'm trying to put an extra line in it,so I can make my commands react on 3 ways.
1. !push (example)
Code: Select all
bind pub - !brb brb_msg
proc brb_msg {nick uhost hand chan args} {
putchan $chan "eventjes geduld mensen ... $nick komt zodadelijk weer :)"
return 1
}
Code: Select all
bind pub - !bye bye_msg
proc bye_msg {nick uhost hand chan args} {
if {[lindex $args 0] == ""} { puthelp "notice $nick :gebruik !bye <nick>" ; return 0 }
putchan $chan "Tot ziens $args ... ik hoop dat je gauw weer terug komt ... cya ... :-)"
return 1
}
Code: Select all
bind pub - !badje badje_msg
proc badje_msg {nick uhost hand chan args} {
global botnick
if {[lindex $args 0] == ""} { puthelp "notice $nick :gebruik !badje <nick>" ; return 0 }
if {[lindex $args 0] == $botnick } { putchan $chan "'t Is nie omda gij raar riekt $nick , dat ik in bad moet hé!" ; return 0 }
putchan $chan "$nick neemt een heerlijk heet badje samen met $args, Oohhh ... wat een passie ... of zijn jullie met rubberen eendjes aan't spelen :ppp"
return 1
}
And one where the bot react on nick/botnick also
But I can't figure out how to make it work in one code. (like in example 3, but that in that code all 3 manners are present.)
Sorry if mine English is not perfect,but I'm Belgian.
That's also the reason that my commands are in Dutch.