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.

timed join/part ? [SOLVED]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

timed join/part ? [SOLVED]

Post by spijon »

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.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Code: Select all

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...
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

Post by spijon »

Thanks De Kus

I will theck it out later
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

Post by spijon »

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?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
s
spijon
Voice
Posts: 33
Joined: Sun Aug 27, 2006 9:55 pm

Post by spijon »

Works great!

My bad .. i diddent add the chan in the eggdrop :|

Thanks guys
Post Reply