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 

timed join/part ? [SOLVED]

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


Joined: 27 Aug 2006
Posts: 33

PostPosted: Tue Sep 05, 2006 12:40 pm    Post subject: timed join/part ? [SOLVED] Reply with quote

Hey guys!

Im looking for a script that makes a bot join a channel at like 24:00 and part 10:00 aclock?

Thanks


Last edited by spijon on Thu Sep 07, 2006 11:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue Sep 05, 2006 7:12 pm    Post subject: Reply with quote

Code:
bind time -|- {00 00*} activatechannel
bind time -|- {00 10*} deactivatechannel

proc activatechannel {min h d m y} {
   channel set #channel -inactive
}

proc deactivatechannel {min h d m y} {
   channel set #channel +inactive
}

_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
spijon
Voice


Joined: 27 Aug 2006
Posts: 33

PostPosted: Wed Sep 06, 2006 3:05 am    Post subject: Reply with quote

Thanks De Kus

I will theck it out later
Back to top
View user's profile Send private message
spijon
Voice


Joined: 27 Aug 2006
Posts: 33

PostPosted: Thu Sep 07, 2006 12:15 pm    Post subject: Reply with quote

Hmm i tryed it but nothing happens..

I've tryed to theck the timezone set the channel on the eggdrop and the script {h min d m y} insteed of the {min h d y} but stille nothing?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Sep 07, 2006 1:58 pm    Post subject: Reply with quote

Could you verify that the binding has been triggered?
(type ".bind time" in dcc-chat as owner, should list both bindings. Please check the "hits"-column for each binding - Should read a number greater than 0).

Also, De Kus' code assumes that channel #channel has already been added to your bot. Make sure it is.. (of course, you'll have to change #channel to whatever the name of your channel is)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
spijon
Voice


Joined: 27 Aug 2006
Posts: 33

PostPosted: Thu Sep 07, 2006 10:59 pm    Post subject: Reply with quote

Works great!

My bad .. i diddent add the chan in the eggdrop Neutral

Thanks guys
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