Channel Greet With Nick Counter

By jonypaul on Jun 19, 2006

Hi!! This is the first snippet I have ever posted here. In fact, the first one I made, without just changing other peoples snippets to what I like. It is a very easy, simple snippet that will greet a user when he/she joins your chan. It also says the total number of joins since the day you installed it. all you have to do is press ALT + R > FILE > NEW and just paste this there.
Then, right click the channel and select "channel greet". You can reset the date ( it cleans the total of joins, so they'll turn to 0 ) or just show the chan the number of joins. NOTE: where it says #channel change "channel" to the one you wont this to work on, or just put # if you want it to work everywhere.
Well thats it!! If you have any problem just ask, and any critic just make it, as I want to improve my scripting skills :D

menu channel {
  .channel greet
  ..Reset:/setnew
  ..Show Current Total Joins ( public ): /msg $chan 7Since %totaldate $+ 9 %totalusers 7people have joined $chan
  .-
}
alias /setnew {
  /set %totaldate $date
  /unset %totalusers
}

on *:JOIN:#Channel: {
  inc %totalusers 1
  .msg $chan 7Hi4 $nick $+ 7!! Welcome! You're the number9 %totalusers 7person to join $chan since4 %totaldate $+ 7!! Enjoy it here!
}

Comments

Sign in to comment.
KyleJack-Daniels   -  Feb 24, 2011

this may be old but the date, number wont work. any ideas?

 Respond  
jonypaul   -  Jun 21, 2006

ok thx man :D

 Respond  
xDaeMoN   -  Jun 21, 2006

The best place would be in the forum ( http://www.hawkee.com/phpBB2/viewforum.php?f=1 )

 Respond  
jonypaul   -  Jun 21, 2006

Well...thx for all the help :D
Anyway...I\'m not sure this is the best place to give me an information?
I\'ve got an idea for a code...but need a thing i dunno....can i ask here? lol

 Respond  
noMen   -  Jun 20, 2006

Rectification! Mind the extra ]

You can count the users per channel by using %totalusers. [ $+ [ $chan ] ] and %totaldate. [ $+ [ $chan ] ] and of course # instead of #channel.

Why can\'t we edit comments? :S

 Respond  
noMen   -  Jun 20, 2006

You can count the users per channel by using %totalusers. [ $+ [ $chan ] and %totaldate. [ $+ [ $chan ] and of course # instead of #channel.

 Respond  
jonypaul   -  Jun 20, 2006

Well thx :DDD
Just a minor ajustment:
when i said to replace #channel with # for it to work everywhere, I was wrong, and now i saw that :P
If you just put #, it\'ll be constantly adding users in everychan...imagina you have your bot in a chan that\'s got 50 joins and in a 4 joins one...the variable would be set as 54, the total of joins between the two :D. So...just replace #Channel with the one you want...if you want it to work elsewhere, just paste this anyplace else and replace #channel for the other one you want

 Respond  
CaRe_Taker   -  Jun 20, 2006

this is for a bot yeah ?
Not a bad job :)
For a first script

but with ya alias you dont need to put a / in the command it should be like this

alias setnew {
/set %totaldate $date
/unset %totalusers
}

but your way will still work :)
lol
Good job an Welcome :)

 Respond  
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.