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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Wed Jan 30, 2008 8:36 pm
hi
i need small cycle script that will rejoin few channels (not all) in interval of 15 mins.
I found some scripts in archive but nothing works for me..
sorry on bad english
thnx
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Thu Jan 31, 2008 11:30 am
Code: Select all
bind time - "00 * * * *" my:cycle
bind time - "15 * * * *" my:cycle
bind time - "30 * * * *" my:cycle
bind time - "45 * * * *" my:cycle
proc my:cycle {min hour day month year} {
putserv "PART #MyChannel :Hello, this is just a part msg."
putserv "JOIN #MyChannel"
}
This will cycle your channel every 15 minutes, any problems let me know.
peace
death
|AmDeAtH @ Undernet
Death is only the *Beginning*...
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Thu Jan 31, 2008 6:42 pm
Okay and how to edit this to cycle all channels except monitoring chan..
variable for monitoring chan is
set spambotmon #channel
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Thu Jan 31, 2008 10:58 pm
Code: Select all
proc my:cycle {min hour day month year} {
putserv "PART #channel1 :Hello, this is just a part msg."
putserv "PART #channel2 :Hello, this is just a part msg."
putserv "PART #channel3 :Hello, this is just a part msg."
putserv "JOIN #channel1"
putserv "JOIN #channel2"
putserv "JOIN #channel3"
}
or do like this:
You need to give flag like to enable cycle on any channel:
Code: Select all
setudef flag mycycle
bind time - "00 * * * *" my:cycle
bind time - "15 * * * *" my:cycle
bind time - "30 * * * *" my:cycle
bind time - "45 * * * *" my:cycle
proc my:cycle {min hour day month year} {
foreach chan [channels] {
if {[channel get $chan mycycle]} {
putserv "PART $chan :Hello, this is just a part msg"
putserv "JOIN $chan"
}
}
}
I have'nt tested the second code so I am not sure how perfect it is.
peace
death
Last edited by
iamdeath on Thu Jan 31, 2008 11:09 pm, edited 2 times in total.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Thu Jan 31, 2008 11:04 pm
opsb:
If you are after an anti spam script (which involves a bot cycling at settable intervals) then you should be looking at demon's
spambuster script.
Last edited by
Alchera on Fri Feb 01, 2008 11:00 am, edited 1 time in total.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Fri Feb 01, 2008 7:06 am
My bot is deoped on all channels.. and can't kick/ban.
Just scanning for spam for specific words and monitoring to ops channel
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Fri Feb 01, 2008 8:20 am
iamdeath wrote: You need to give flag like to enable cycle on any channel:
Code: Select all
setudef flag mycycle
bind time - "00 * * * *" my:cycle
bind time - "15 * * * *" my:cycle
bind time - "30 * * * *" my:cycle
bind time - "45 * * * *" my:cycle
proc my:cycle {min hour day month year} {
foreach chan [channels] {
if {[channel get $chan mycycle]} {
putserv "PART $chan :Hello, this is just a part msg"
putserv "JOIN $chan"
}
}
}
I have'nt tested the second code so I am not sure how perfect it is.
peace
death
This script works very good..
So will this be correct
Code: Select all
proc my:cycle {min hour day month year} {
global timewait
foreach chan [channels] {
if {[channel get $chan mycycle]} {
putserv "PART $chan :Hello, this is just a part msg"
timer $timewait putserv "JOIN $chan"
}
}
}
and then use variable
set timewait 1
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Fri Feb 01, 2008 9:40 am
Code: Select all
setudef flag mycycle
bind time - "00 * * * *" my:cycle
bind time - "15 * * * *" my:cycle
bind time - "30 * * * *" my:cycle
bind time - "45 * * * *" my:cycle
proc my:cycle {min hour day month year} {
foreach chan [channels] {
if {[channel get $chan mycycle]} {
putserv "PART $chan :Hello, this is just a part msg"
utimer 60 [list putserv "JOIN $chan"]
}
}
}
This should be fine because it will make your bot rejoin your channel in 60 seconds, I have'nt tested it but let me know.
peace
death.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Fri Feb 01, 2008 12:07 pm
iamdeath
Master
Posts: 323 Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:
Post
by iamdeath » Fri Feb 01, 2008 1:06 pm
I don't understand you or I can't get what you're looking for sorry.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Fri Feb 01, 2008 1:14 pm
That's because eggdrops rejoin their own channels the moment it notices it has parted.
Code: Select all
setudef flag mycycle
bind time - "00 * * * *" my:cycle
bind time - "15 * * * *" my:cycle
bind time - "30 * * * *" my:cycle
bind time - "45 * * * *" my:cycle
proc my:cycle {min hour day month year} {
foreach chan [channels] {
if {[channel get $chan mycycle]} {
channel set $chan +inactive
utimer 60 [list channel set $chan -inactive]
}
}
}
Also, you should stop requesting pieces of scripting to add to your "anti spambot" script because you're not doing any of the work, nor do you seem able to do so.
opsb
Halfop
Posts: 41 Joined: Sat Sep 01, 2007 1:41 pm
Post
by opsb » Fri Feb 01, 2008 1:20 pm
iamdeath wrote: I don't understand you or I can't get what you're looking for sorry.
Something Like this
[18:12:15] Part Eggdrop
[18:13:15] Join Eggdrop
[18:28:15] Part Eggdrop
[18:29:15] Join Eggdrop
And so on