Channel Progress Tracker

By GoldFish on Jun 26, 2011

Hey guys. This is a random snippet I made to keep track of:

  • How many times a user has joined the channel (increases by 1 every time someone joins the channel.)
  • How many users have joined the channel (increases by 1 every time a user joins the channel who hasn't joined before.)

Before you use, type this:
/set %chan <#channel>
This will set the channel you're keeping progress of. ex:
/set %chan #mIRC

Cheers!

on *:join:%chan: {
  inc %f
  if ($nick !isin %g) {
    set %g %g $nick
  }
  notice $nick Welcome to %chan $+ , $nick $+ !
  notice $nick Amount of joins: %f
  tokenize 32 %g
  notice $nick Amount of people joined: $numtok(%g,32)
}

Comments

Sign in to comment.
Sorasyn   -  Jun 26, 2011

Could be improved in a number of ways, but it looks as if you're getting better at mSL. :)

A few ideas to toss around at your discretion:

  • Multi-channel support and output the data for the channel in question. (EG. Power joins #chan returns: Amount of Joins: 1 Amount of people joined: 24)
  • Being a user that hates to be barraged with notices upon joining a channel; it may be worth toning down the amount of notices and add a command to see such statistics without annoying the users. (New scripters tend to make snippets with lots of outputs since it's one of the few commands they have a handle on. I've been there myself lol.)
GhostRyder  -  Jul 05, 2013

I believe the counter is a bit off and not accurate... How would I change that part?

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.