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.

new date.tcl birthday and event script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

new date.tcl birthday and event script

Post by rosc2112 »

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 :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

date v203r

Post by rosc2112 »

Added some more features, fixed more bugs, consolidated more code..Same url as above.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Another minor fix.

## 28/4/06 - Small fix in birthday 'additional channels' cleanup code, to add $bdchan *after* removing chans over $maxbdchans.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

v208r

Post by rosc2112 »

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

Post by Alchera »

tcl-commands.doc was written in 2004 and a tad dated. :lol:

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Re: v209r

Post by rosc2112 »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

bumped to v2.0.10r

Post by rosc2112 »

more fixes.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

v2.0.11 new feature: Event Alarms!

Post by rosc2112 »

New feature for the date script: Event Alarms!

Test it, break it, tell me :P

http://members.dandy.net/~fbn/date.2.tcl.txt
T
Tzan
Voice
Posts: 1
Joined: Mon Sep 18, 2006 2:02 pm

.date next

Post by Tzan »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
User avatar
incith
Master
Posts: 275
Joined: Sat Apr 23, 2005 2:16 am
Location: Canada

Post by incith »

Somebody stop rosc! His submissions are out of control! :D

Good work as always man.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

incith wrote:Somebody stop rosc! His submissions are out of control! :D
*cough* her

Thanks :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Re: .date next

Post by rosc2112 »

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
e
edegroot
Voice
Posts: 4
Joined: Fri Mar 07, 2008 7:26 am

Post by edegroot »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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