egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

new date.tcl birthday and event script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Apr 21, 2006 9:04 pm    Post subject: new date.tcl birthday and event script Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Apr 23, 2006 10:32 pm    Post subject: date v203r Reply with quote

Added some more features, fixed more bugs, consolidated more code..Same url as above.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Apr 28, 2006 1:06 am    Post subject: Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed May 17, 2006 6:40 pm    Post subject: v208r Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed May 17, 2006 8:54 pm    Post subject: Reply with quote

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

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? Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Jun 10, 2006 2:54 pm    Post subject: Re: v209r Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Jul 30, 2006 10:09 am    Post subject: bumped to v2.0.10r Reply with quote

more fixes.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Aug 06, 2006 6:21 am    Post subject: v2.0.11 new feature: Event Alarms! Reply with quote

New feature for the date script: Event Alarms!

Test it, break it, tell me Razz

http://members.dandy.net/~fbn/date.2.tcl.txt
Back to top
View user's profile Send private message
Tzan
Voice


Joined: 18 Sep 2006
Posts: 1

PostPosted: Mon Sep 18, 2006 2:06 pm    Post subject: .date next Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Sep 18, 2006 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Tue Sep 19, 2006 10:01 am    Post subject: Reply with quote

Somebody stop rosc! His submissions are out of control! Very Happy

Good work as always man.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Sep 19, 2006 3:40 pm    Post subject: Reply with quote

incith wrote:
Somebody stop rosc! His submissions are out of control! Very Happy


*cough* her

Thanks Smile
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Sep 22, 2006 12:35 am    Post subject: Re: .date next Reply with quote

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
View user's profile Send private message
edegroot
Voice


Joined: 07 Mar 2008
Posts: 4

PostPosted: Thu Jul 24, 2008 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Jul 24, 2008 6:08 pm    Post subject: Reply with quote

.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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber