Is there a way... well I know there is... but how!
To read only the nicks in the room?
for example:
<Person> !random nick
<Bot> Georgebob
<Georgebob> o.o
I have seen this done with another mirc bot, who "hugged" all the people in the room.
on *:TEXT:!random nick:#:msg # $nick(#,$rand(1,$nick(#,0)))
awesome! Thanks a bunch, that was shorter than I expected...
If I wanted to use all the members, would I do..
msg # $nick(#)
pretty close, /help $snicks
$snicks would return selected nicks, not ALL nicks. Not unless you selected all of them in the nicklist.
Your idea would flood the room if there are a lot of people in the room.
The server I use is very small, never anymore than 15 people in the channel. But thanks
$snicks would return selected nicks, not ALL nicks. Not unless you selected all of them in the nicklist.
yes... Ithought /sline was with it... my bad
/sline [-a|r] <#channel> <N|nick>
Selects or deselects lines in a channel nickname listbox. It can select either the Nth nickname in a listbox, or a specified nickname.
If you do not specify any switches, any existing selections in the listbox are cleared. If you specify the -a switch then the specified is selected without affecting the selection states of other lines. If you specify the -r switch then the specified item is deselected.
alias allnicks {
var %i = 1, %n, %chan = $iif($1 ischan,$1,$chan)
while ($nick(%chan,%i)) {
var %n = %n $v1
inc %i
}
if ($isid) return %n
msg %chan %n
}
To just get all nicknames, use $allnicks(#channel) or $allnicks if you're in the correct window/event, to send a message to the channel with only all nicks: /allnicks #channel
You can probably adapt it somewhat to your needs...
For the bot try
on *:TEXT:!allnicks*:#:{
var %i = 1
while ($nick(#,%i)) {
if ($nick($chan,%i) != $me) { var %allchan = %allchan $nick(#,%i) }
inc %i
}
msg $chan %allchan
}
It should post all the nicks but the bots