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.

simple cycle script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

simple cycle script

Post by opsb »

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
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

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*...
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

Post by opsb »

Okay and how to edit this to cycle all channels except monitoring chan..

variable for monitoring chan is

set spambotmon #channel
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

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

.chanset #Channel +mycycle

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*...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

Post by opsb »

My bot is deoped on all channels.. and can't kick/ban.

Just scanning for spam for specific words and monitoring to ops channel
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

Post by opsb »

iamdeath wrote:You need to give flag like to enable cycle on any channel:

Code: Select all

.chanset #Channel +mycycle

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
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

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*...
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

Post by opsb »

It's again just rejoin , now waiting

Please Read

http://forum.egghelp.org/viewtopic.php? ... 585c#80546
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

I don't understand you or I can't get what you're looking for sorry.
|AmDeAtH @ Undernet
Death is only the *Beginning*...
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

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.
o
opsb
Halfop
Posts: 41
Joined: Sat Sep 01, 2007 1:41 pm

Post by opsb »

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
Post Reply