| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Apr 21, 2006 9:04 pm Post subject: new date.tcl birthday and event script |
|
|
Massively re-wrote date.tcl and uploaded to the archives, as well as here:
http://members.dandy.net/~fbn/date.2.tcl.txt
Added some new functions, added sanity checks and input limits, etc. Much improved (IMNSHO :) |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Apr 23, 2006 10:32 pm Post subject: date v203r |
|
|
| Added some more features, fixed more bugs, consolidated more code..Same url as above. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Apr 28, 2006 1:06 am Post subject: |
|
|
Another minor fix.
## 28/4/06 - Small fix in birthday 'additional channels' cleanup code, to add $bdchan *after* removing chans over $maxbdchans. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed May 17, 2006 6:40 pm Post subject: v208r |
|
|
Just another update.
## 17/5/06 - Fixed a problem with the Month setting in proc timedate again* - Would be nice if the documentation actually had the *correct* info - According to tcl-commands.doc "minute, hour, day, month have a zero padding so they are exactly two characters long" - This is *wrong* Month is actually 0-11 for JAN-DEC.
Same location as above |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed May 17, 2006 8:54 pm Post subject: |
|
|
tcl-commands.doc was written in 2004 and a tad dated.
Development of eggdrop has fallen onto the shoulders of basically one person; it's time consuming and very easy to miss updating the odd file or to have typos in files that forever remain undetected.
Maybe you should post a suggestion on the eggheads site?  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Jun 10, 2006 2:54 pm Post subject: Re: v209r |
|
|
Fixed a few more bugs, version is now at 209r. Same url as above. If no problems are reported in a few days, I'll upload a new version to the egghelp archives.
10/5/06 - Fixed birthday calc problem noted by "H.Vlijm" where next year bdays were not calculating right.
- Fixed 'expr $evday + 1' - when a day-of-month has a leading zero, expr treats it like an octal, duh. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Jul 30, 2006 10:09 am Post subject: bumped to v2.0.10r |
|
|
| more fixes. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
Tzan Voice
Joined: 18 Sep 2006 Posts: 1
|
Posted: Mon Sep 18, 2006 2:06 pm Post subject: .date next |
|
|
Hi.
Is it possible to make a "search" for the next bday in the channel? Like .date next and then it will list the next person/persons that has a bday recorded in the database
/Tzan |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Sep 18, 2006 4:07 pm Post subject: |
|
|
| Just .date listbdays for now, but I'll add your idea to the suggestions/todo list and might work on the script sometime this week. No promises tho. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Tue Sep 19, 2006 10:01 am Post subject: |
|
|
Somebody stop rosc! His submissions are out of control!
Good work as always man. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Sep 19, 2006 3:40 pm Post subject: |
|
|
| incith wrote: | Somebody stop rosc! His submissions are out of control!
|
*cough* her
Thanks  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Sep 22, 2006 12:35 am Post subject: Re: .date next |
|
|
| Tzan wrote: | Hi.
Is it possible to make a "search" for the next bday in the channel? Like .date next and then it will list the next person/persons that has a bday recorded in the database
/Tzan |
All set, new command is '.date nextbday'
Also added a config option "eventexpire" so that old events can be removed from the data file, if the bot owner so wishes.
Changes:
Sep/20/06
- Added 'eventexpire' config option to remove old events from the data file. If you don't like the "putcmdlog" string showing, just comment it out in the script (there's only 1 "putcmdlog")
- Added ".date nextbday" to show the next upcoming birthday(s). Feature requested by 'Tzan'
Same bat-place, same bat-url:
http://members.dandy.net/~fbn/date.2.tcl.txt |
|
| Back to top |
|
 |
edegroot Voice
Joined: 07 Mar 2008 Posts: 4
|
Posted: Thu Jul 24, 2008 3:17 pm Post subject: |
|
|
Hi,
i have a little problem with this script.
people with birthday on APR 30, doesnt show up in the channel.
I get an error in the partyline:
Tcl error [pub_date]: unable to convert date-time string "APR 31, 2008 00:00"
someone got a fix ? My knowledge about TCL is almost zero. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Jul 24, 2008 6:08 pm Post subject: |
|
|
| .set errorInfo debug output would be much more helpful. As I don't have a test platform at the moment, I can't run a quick check to duplicate the problem locally. |
|
| Back to top |
|
 |
|