| View previous topic :: View next topic |
| Author |
Message |
Darki_one Voice
Joined: 17 Mar 2005 Posts: 2
|
Posted: Thu Mar 17, 2005 12:20 pm Post subject: info for bf |
|
|
hello i search informations for create a backfill system for my bot script
(new)-(section) xxxx
(backfill)-(section) xxxx is 10min 12sec. too old
thx for help |
|
| Back to top |
|
 |
greenbear Owner
Joined: 24 Sep 2001 Posts: 733 Location: Norway
|
Posted: Thu Mar 17, 2005 1:43 pm Post subject: |
|
|
| Sounds like you need a prebot. |
|
| Back to top |
|
 |
Darki_one Voice
Joined: 17 Mar 2005 Posts: 2
|
Posted: Thu Mar 17, 2005 3:13 pm Post subject: |
|
|
| yes right i have a prebot script also my script have no backfill option and now i search infos how i can add a backfill option to my script |
|
| Back to top |
|
 |
greenbear Owner
Joined: 24 Sep 2001 Posts: 733 Location: Norway
|
Posted: Thu Mar 17, 2005 3:32 pm Post subject: |
|
|
assuming you store the pretime in a unixtime format you can change the relevant part in your script to something like this
| Code: |
# limit, in seconds
set maxtime 300
if {[expr [unixtime]-$pretime]>=$maxtime} {
# it's too old, send warning
} {
# normal pretime msg
} |
|
|
| Back to top |
|
 |
|