Channel count

Platform:  mIRC
Published  Sep 08, 2011
Updated  Sep 10, 2011
This is probably the most basic script in the world. It uses comchan as finds out how many channels $2 is in kinda =s

ie. If your bot is in 10 channels and $2 is in the exact 10 channels, it'll reply 10.

But if your bot is in 10 channels and $2 is in 15 channels, yet $2 is in 7 channels as the bot is in, it'll reply 7.

I know, it's hard to explain but relatively simple script. on *:TEXT:!count *:#:{
privmsg $chan $2 is in $comchan($2,0) of the same channels I am in :)
}

Comments

Sign in to comment.
Emo_Pikachu   -  Jan 28, 2012
Anyways jackster35-1 its a good code and keep up the good work
 Respond  
jackster35-1   -  Sep 09, 2011
No problem Jethro, all's forgiven. :)
 Respond  
napa182   -  Sep 09, 2011
lol @ that was kinda gay....
hahahaha yeah it was but it was funny..
Jethro don't let people get to you so much learn to let go...
much love an peace be with you....
 Respond  
Jethro   -  Sep 09, 2011
My apologies, jackster, for turning your thread into a sideshow. I admit that I seriously need to reevaluate my outburst toward another person, because I haven't a clue as yet why something one particular person says can easily ticks me off. Incidentally, napa182, that was kinda gay....:/
 Respond  
napa182   -  Sep 09, 2011
No problem jackster35-1 keep up the coding ;x
 Respond  
jackster35-1   -  Sep 09, 2011
napa182, I wasn't going to delete your comment. I was just pointing out that off topic comments will get deleted.
 Respond  
napa182   -  Sep 09, 2011
lol I don't care if you delete my comments at all. It was a joke to them as they always seem to fight over nothing hence the tension between them. Jethro still needs to learn not to let people bug him to the point to keep it going an going tbh.
 Respond  
Aha2Y   -  Sep 09, 2011
That's exactly how I learn stuff Jackster35-1.

I look forward to your next script. :)
 Respond  
jackster35-1   -  Sep 09, 2011
Hi, Aha2Y, thanks. I also love your scripts, they're amazing. I too might try making a dialog. I'll be using other peoples as examples and try and learn from others. :)
 Respond  
Aha2Y   -  Sep 09, 2011
Hi Jackster35-1 nice script :)
 Respond  
jackster35-1   -  Sep 09, 2011
Nobody needs to screw each other. At the end of the day, they've had a little "fight" from my point of view and whatever happens between them happens between them. Any comments that stay on topic are acceptable, otherwise I'll remove them. :)
 Respond  
napa182   -  Sep 09, 2011
Sorry jackster35-1 to say this on ur comments, but Jethro an _Dean_ should just go screw each other an get it over with all ready as there seems to be a lot of sexual tension between them. jk of course =P
 Respond  
Jethro   -  Sep 09, 2011
I usually don't like to get into a "dramatic" debate, but it usually takes an ignorant, egotistical person to make capital out of another before this whole thing goes to wrack and ruin.
 Respond  
Aha2Y   -  Sep 09, 2011
lol @ napa182's comment about lol @ drama
 Respond  
napa182   -  Sep 09, 2011
lol @ drama
 Respond  
jackster35-1   -  Sep 09, 2011
You lot have really good scripts, and Jethro, I like the script where it shows the channels as well. But my script is probably the most basic you could get with replying with the number of channels $2 is in. Really liking the replies and debates you lot are having. :)
 Respond  
Noutrious   -  Sep 09, 2011
GEEKFIGHT
 Respond  
SunnyD   -  Sep 09, 2011
Food for entertainment. :)
 Respond  
Jethro   -  Sep 09, 2011
You just can't help but have a go before telling someone to stop.
stop talking about yourself, and dont be selfish
That's enough of you hypocrisy all in a day's work. I'm out of this mess for the last time.
 Respond  
_Dean_   -  Sep 09, 2011

some folks who'll find any opportune moment to bring you down


all right, stop talking about yourself, and dont be selfish, i think we need to stop this by now, since all subjects are going off topic
 Respond  
Jethro   -  Sep 08, 2011
I don't consider myself one of the "privileged few." I feel privileged to help out others, but unfortunately there'll always be some folks who'll find any opportune moment to bring you down. The is supposed to be a forum where people encourage each other to be better, not defame or criticize just to boost your own ego.
 Respond  
_Dean_   -  Sep 08, 2011
^^^ an expert comment, totally off topic (ironic)
 Respond  
Wader   -  Sep 08, 2011
Sometimes i really think the internet should have some sort of test to qualify for the privileges to use it....
 Respond  
Jethro   -  Sep 08, 2011
The issue here is this: you want to keep your own pride by disparaging how bad my example is incessantly, and you're going to the extreme. I did admit that failure, while I was patiently waiting for you to draw up the likelihood of my code fallacy, which you finally did so at the very end. Then, Out of nowhere, you told me how I should learn to read -- that was uncalled for.
 Respond  
Jethro   -  Sep 08, 2011
You did use $calc(), did you not?
 Respond  
_Dean_   -  Sep 08, 2011
Jethro if you already knew, that i would post that, and keep asking that? i think you have serious issues...


Anyway, this is pointless now to further this meaningless debate or debacle.


no that its not pointless, since it will fail, you need to provide a good code, since mine doesnt need the $calc() its still working with that, but yours will keep returning the wrong number for channels
 Respond  
Jethro   -  Sep 08, 2011
I was waiting for you to show me that, and you failed to do so. Yes, I did my own testing, and it did fail on that scenario.

Please don't tell me how to read when you can't even write a proper sentence yourself.

Lastly, taken from your original example, you still don't need $calc().

Anyway, this is pointless now to further this meaningless debate or debacle.
 Respond  
_Dean_   -  Sep 08, 2011

using $left(%x,1) will fail, if the nick is in 16 channels, it will only return 1.. the right way to do it, is using $gettok


try this, put another nick in 10 other channels

then type !count nick


Nick is in 1 of the same channel(s) I am in, and nick is on: #chan1, #chan2, #chan3,#chan4,#chan5,#chan6,#chan7,#chan8,#chan9,#chan10


your method will only return 1, instead 10
you need to learn how to read, since im repeating the same thing 4 times
 Respond  
Jethro   -  Sep 08, 2011
Why took you this long to show me your own failure and kept on telling me that mine would fail with "wrong number?"

You still haven't drawn up any scenario that mine will result in fallacy. You gotta give me something concrete, or what you've said to me is nothing but flimsy.
 Respond  
_Dean_   -  Sep 08, 2011
i did realize that fail too, But that didn't establish my acceptance to your nitpicking of it. Also, what are you to do of your own failure?

in the example i posted before, all you need is change 2 to 1

Code
 


so it will return the first channel prefix
 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.