Hug on join

By Phil_FW on Feb 08, 2011

This is a basic ON *:JOIN: hug script with counter. It has a Channel menu to disable and enable, and has a bit of color. Enjoy!

#jhugs on
on !*:join:#:{
  inc %jhugs
  describe # hugs $nick 9,6(Total Hugs:8,6 %jhugs $+ 9,6 $+ )
}
#jhugs end
menu channel {
  .. --Join Hugs--
  .Switch {
    $+($iif($group(#jhugs) != off,.dis,.en),able) #jhugs
    echo -a Hugs on Join $+($replace($group(#jhugs),on,Ac,off,Deac),tivated.)
  }
}

Comments

Sign in to comment.
Phil_FW   -  Apr 11, 2012

I'm sure theres one like that somewhere on here

 Respond  
chachin   -  Apr 11, 2012

but i would love to have a weather script that does this.

<@chachin> !w
<+Amy> Baytown, Texas (29.8°N 95.0°W) - Updated: 15:31 CDT
<+Amy> Conditions: Scattered Clouds - Temperature: 27.6°C (81.6°F)
<+Amy> Dew Point: 19°C (66°F) - Humidity: 59%
<+Amy> Wind: WSW at 4.0 MPH (6.4 KPH) - High/Low: 29/17°C (84/63°F)

 Respond  
Phil_FW   -  Apr 08, 2012

Lol, I figured that, since it was months ago when you asked for that

 Respond  
chachin   -  Apr 08, 2012

nah no thanks.. jethro made a script that does exactly what I want a while ago.. its perfect.. :)

 Respond  
Phil_FW   -  Apr 05, 2012

By the way, chachin, if you would like, I can make it so, if phoenix changes their nick, you can just use the piece that uses their hostmask instead

 Respond  
Phil_FW   -  Apr 05, 2012

not EVENT.. it'd be ACTION.. like this...

on :action:$($+(,hugs,,$me,)):#:{
if ($nick == $phoenix) { describe # hugs $nick back <3 }
}

 Respond  
ElVirus   -  Apr 05, 2012

He only wants it to "hug back" one particular person, when they hugs him. His issue is that it "hugs back" that nick whenever ANYONE hugs THAT person instead of only when HE hugs that person.
I am not sure of the exact code he needs but I see what he is saying.
could be

ON EVENT:PHEONIX hugs $me*:#: timer 1 2 describe $chan hugs $nick back <3

idk for sure

 Respond  
KilllerX   -  Mar 25, 2012

on :action:hugs*:#: if ($nick == phoenix) timer 1 2 describe $chan hugs $nick back <3

^ wouldn't this only work if the name phoenix activates it?

You would be looking for

On :Action:hugs*:#: if ($me isin $1-) .timerhugback 1 2 describe # hugs $nick back <3

or something to that effect.

 Respond  
chachin   -  Sep 05, 2011

like if someone else hugs phoenix. my script goes off and i hug phoenix. and the other peopld go mad at me then kick me for that :( i just want a "return hug when hugged by 1 person you select him/her"

SORRY FOR DOUBLE POST

 Respond  
chachin   -  Sep 05, 2011

what i want is a personal hug that whenever 1 person hugs me i hug her/him back but only 1 person. i tried this but whenever someone else hugs that person. my script goes off hugging the person i want to hug/me

on :action:hugs*:#: if ($nick == phoenix) timer 1 2 describe $chan hugs $nick back <3

 Respond  
Phil_FW   -  Sep 04, 2011

bam! got told :P

 Respond  
Jethro   -  Sep 04, 2011

Yes, and if josh is still annoyed by it, you can change it to:

describe $nick

so the action message gets sent to his or her query instead.

 Respond  
Phil_FW   -  Sep 04, 2011

well of the months i've used it.. nothing happens :P

 Respond  
Jethro   -  Sep 03, 2011

You can tell josh is kick and ban happy.

 Respond  
Jordyk19   -  Sep 03, 2011

Orly? :P

  • josh sets mode: +b Jordy!@*
  • You were kicked from #IRCTalk by josh (Shut the hell up with that script!)
 Respond  
Jethro   -  Sep 03, 2011

It actually could get you banned or flooded off running the script, phil24, if some kiddies engaged in a join flood, while the script is turned on.

But then again, I won't worry much about that if you're always with nice folks on irc.

 Respond  
Phil_FW   -  Sep 03, 2011

not really

 Respond  
chachin   -  Jun 22, 2011

good script to get banned :D

 Respond  
Phil_FW   -  Mar 28, 2011

no problem :D

 Respond  
ElVirus   -  Mar 27, 2011

Hey man this is great ! I added the flood and edited the text so it invites to my radio station. Thanks for the post and for the edits!

 Respond  
Phil_FW   -  Feb 10, 2011

i like ur script habits lol so i used ur edit :D

 Respond  
Jethro   -  Feb 10, 2011

Phil, the basic flood control should've been included. I didn't know you were gonna adapt my code:

on !*:join:#:{
  if !%p {
    inc -u2 %p
    inc %jhugs
    describe # hugs $nick 9,6(Total Hugs:8,6 %jhugs $+ 9,6 $+ )
  }
}

But the only pitfall will be that if another person joins while the 2-second flood control check hasn't expired, he or she may not get a reply. Then again, I don't think that is a constant probability.

 Respond  
Phil_FW   -  Feb 10, 2011

updated

 Respond  
Jethro   -  Feb 10, 2011

I also want to point out that if someone malicious engages in a hop flood, this snippet is pretty much doomed. Then you can hardly do a thing to turn it off while being flooded. You're gonna be in the state of freeze, followed by a possible ban or server disconnection.

 Respond  
H3xable   -  Feb 10, 2011

Whats the point of a hug on join, what if someone sue's you for yyour bot touching them. then what. jk you should make a rap on join i would probly rate higher then a 1 :D

 Respond  
Jethro   -  Feb 09, 2011

Why is that?

 Respond  
Phil_FW   -  Feb 09, 2011

it doesnt do it to me though. lol

 Respond  
Jethro   -  Feb 09, 2011

You do know what I was saying right? Let's say phil24 runs the snippet in a channel, and then phil24 makes a hop or rejoins the channel, your snippet will trigger and hugs phil24.

 Respond  
Phil_FW   -  Feb 09, 2011

lol ok Jethro_ thanks

 Respond  
Jethro   -  Feb 09, 2011

Phil, you like to hug yourself too? :P Add a ! prefix to the join event to negate that occurrence. Also, you can make the group enable and disable into one switch. Toggle it once to turn it on and off depending on whether it's on or off:

#jhugs on
on !*:join:#:{ 
  inc %jhugs 
  describe # hugs $nick 9,6(Total Hugs:8,6 %jhugs $+ 9,6 $+ ) 
}
#jhugs end
menu channel {
  .. --Join Hugs--
  .Switch {
    $+($iif($group(#jhugs) != off,.dis,.en),able) #jhugs
    echo -a Hugs on Join $+($replace($group(#jhugs),on,Ac,off,Deac),tivated.)
  }
}

I like to play crosswords so don't mind me if I connect those words in fragments. lol

 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.