Originally Posted By: Nillen
Code:
on *:text:!count*:?: { 
if ($nick != YOURNICK) return
var %channel $iif($2,$2,#DEFAULTCHANNEL)
var %users $nick(%channel,0)
msg $nick There are %users users in %channel $+ .
}
Replace #DEFAULTCHANNEL with the channel you'll be using the most, and replace YOURNICK with your nick. Then message the bot !count or !count #channel.

!count returns the default channel's users, and !count #channel returns that #channel's users.



I did that and it worked great. I like this one more than the snip posted below it, no offense.. It's easier for me to follow and modify. But I did find an issue. I tried to make a room list that the bot is in, and -1 for the count so it doesn't count the bot as a user. So far it's not working though... Where'd I go wrong?

Code:
on *:text:!count*:?: { 
if ($nick != YOURNICK) return
var %channel $iif($2,$2,#DEFAULTCHANNEL,#OTHERCHANNEL,#ANOTHER)
var %users $nick(%channel,0, -1)
msg $nick There are %users users in %channel $+ .
}


Any advice?