I'm searching for a script that when i type '/msg botnick bots'
That i get a list with all linked bots.
Can someone help me with this ?
Code: Select all
bind msg n bots getbots
proc getbots {nick uhost handle text} {
foreach lbot [botlist] {
putserv "PRIVMSG $nick :[lindex $lbot 0] is connected to [lindex $lbot 1]"
}
}
Code: Select all
putserv "privmsg $nick :[bots]"
Code: Select all
foreach lbot [botlist] {
putserv "PRIVMSG $nick :[lindex $lbot 0] is connected to [lindex $lbot 1]"
}
use the code and it doesn't work....and it does not generate any errorCrazyCat wrote:Really short:Code: Select all
bind msg n bots getbots proc getbots {nick uhost handle text} { foreach lbot [botlist] { putserv "PRIVMSG $nick :[lindex $lbot 0] is connected to [lindex $lbot 1]" } }
Code: Select all
bind msg n bots getbots
proc getbots {nick uhost handle text} {
foreach lbot [split botlist] {
putserv "PRIVMSG $nick :[lindex $lbot 0] is connected to [lindex $lbot 1]"
}
}