egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

onjoin msg after set time

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
deadman
Voice


Joined: 08 May 2006
Posts: 18

PostPosted: Sun Jul 16, 2006 12:50 pm    Post subject: onjoin msg after set time Reply with quote

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Jul 17, 2006 7:19 pm    Post subject: Reply with quote

Sure, just use a timer and then double-check if the nick is still present before sending the msg.
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Jul 18, 2006 1:37 am    Post subject: Reply with quote

Code:
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.
Back to top
View user's profile Send private message
deadman
Voice


Joined: 08 May 2006
Posts: 18

PostPosted: Tue Jul 18, 2006 1:33 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
deadite66
Halfop


Joined: 30 May 2005
Posts: 74
Location: Great Yarmouth, UK

PostPosted: Tue Jul 18, 2006 1:49 pm    Post subject: Reply with quote

maybe change to NOTICE $nick so they would just spam themselves
_________________
<- tcl newb
Back to top
View user's profile Send private message
deadman
Voice


Joined: 08 May 2006
Posts: 18

PostPosted: Tue Jul 18, 2006 2:22 pm    Post subject: Reply with quote

nice idea thanx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber