11/12/2011, 16:20
Salut,
tu peux faire en sorte d'identifier ton bot au service lorsqu'il join le salon ?
Exemple à l'arache :
Ou alors dans le même principe que toi tu as fait avec un bind cron par exemple :
Enfin des petit exemple je me trompe peut-être
tu peux faire en sorte d'identifier ton bot au service lorsqu'il join le salon ?
Exemple à l'arache :
tcl
set xbot "tonbot"
set xbot1 "Q@CServe.quakenet.org"
set xpass "lepass"
bind join - * autQ
proc autQ { nick host hand arg} {
set arg [string tolower $arg]
if ![isbotnick $nick] return
putquick "privmsg $::xbot1 :auth $::xbot $::xpass"
}
Ou alors dans le même principe que toi tu as fait avec un bind cron par exemple :
tcl
bind EVNT - init-server proc:XQ
proc proc:XQ { type } {
putquick "PRIVMSG Q@CServe.quakenet.org :AUTH user pass"
putserv "mode $::botnick +x"
}
bind cron - "*/5 * * * *" rQ
proc rQ { min hour day month weekday } {
putquick "PRIVMSG Q@CServe.quakenet.org :AUTH user pass"
}
Enfin des petit exemple je me trompe peut-être