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.

a crontab script request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

game_over: There's no need for the full namepath in that case, as the command is already executed at a global context.
NML_375
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

[03:00:50] <@EPL> STATS UPDATED: www.EPLonline.co.uk/chanstats/stats.html

[03:12:53] <@EPL> STATS UPDATED: www.EPLonline.co.uk/chanstats/stats.html

[03:59:51] <@EPL> STATS UPDATED: www.EPLonline.co.uk/chanstats/stats.html

Here's the script:

Code: Select all

set the_chan "#EPL"

bind pub - -footie EPL 

bind time - "01 00 * * *" EPL 

proc EPL {min hour day month year} { 
putlog "football timer active" 
puthelp "PRIVMSG $::the_chan :STATS UPDATED: www.EPLonline.co.uk/chanstats/stats.html" 
} 

putlog "football_stats loaded!"
Though its suppose to write only once, at 00:01 ?
Idling at #Football, Quakenet.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

set the_chan "#EPL"

bind time - "01 00*" epl:timebind

proc epl:timebind {args} {
   putlog "football timer active"
   puthelp "privmsg $::the_chan :STATS UPDATED: www.EPLonline.co.uk/chanstats/stats.html"
}

putlog "football_stats loaded!"
Load this and "RESTART" your bot. The reason you have so many messages is your NOT restarting your bot. A restart is required to change binds.
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

that worked! thank you everyone!
Idling at #Football, Quakenet.
Post Reply