This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

onjoin msg after set time

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
deadman
Voice
Posts: 18
Joined: Mon May 08, 2006 6:32 pm

onjoin msg after set time

Post by deadman »

hi guys
is it poss to make the eggdrop msg a nick onjoining a set channel after say 5 sec but if the nick leaves befor 5 secs is up the eggdrop dosent msg said channel
thanx guys
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Sure, just use a timer and then double-check if the nick is still present before sending the msg.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind JOIN -|- * useless:spam

proc useless:spam {nick host hand chan} {
  utimer 5 [list send:spam $chan $nick]
}

proc send:spam {chan nick} {
  if {[onchan $nick $chan]} {
    putserv "PRIVMSG $chan :Welcome $nick!"
  }
}
if the person were to rejoin over and over, this would obviously cause a flood though.
d
deadman
Voice
Posts: 18
Joined: Mon May 08, 2006 6:32 pm

Post by deadman »

thanx metroid for your help
is there away to stop it flooding say like if the bot was to only msg the cannel to the same nick every 10 mins if they kept rejoining
d
deadite66
Halfop
Posts: 74
Joined: Mon May 30, 2005 2:49 am
Location: Great Yarmouth, UK

Post by deadite66 »

maybe change to NOTICE $nick so they would just spam themselves
<- tcl newb
d
deadman
Voice
Posts: 18
Joined: Mon May 08, 2006 6:32 pm

Post by deadman »

nice idea thanx
Post Reply