Hello, can someone help me with this?
I need a script to say all the nicks from a channel, when i use some trigger like for example: !nick
and when i use that trigger, he says all the nicks from the channel, from where i used it, and it says something like for example:
me: !nick
eggdrop: ALL NICKS FROM CHANNEL
eggdrop: nick, nick1, nick2, nick3 ....etc
# add your channels this is to work in below. Must be at least one, but can be any amount.
# remember to add them between the double-quotes (" ")
set channelz [split [string tolower "#channel1 #channel2 #etc"]]
bind pub -|- !nick spam:nicklist
proc spam:nicklist {nick uhost hand chan text} {
if {![string length $text]} {
set text $chan
} elseif {![validchan $text]} {
putserv "privmsg $chan :Invalid channel name ($text)."
return
}
if {[lsearch -exact $::channelz [string tolower $text]]} {
putserv "privmsg $chan :ALL NICKS FROM CHANNEL ($text):"
putserv "privmsg $chan :[join [chanlist $chan] ", "]"
}
}
If you type "!nick" it will give you the nicklist of the channel it is typed in. If you type "!nick #channel" you will get the nicklist of that channel instead.