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 

Clock script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Sat Jun 03, 2006 12:38 pm    Post subject: Clock script Reply with quote

Hi, I have searched the tcl pages and googled it but i can seem to find a script so that if i type !GMT in a channel the bot responds with the current time in GMT...
Does anyone know of a script like this or where to get it please ?
Thanks in advance Very Happy
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat Jun 03, 2006 4:13 pm    Post subject: Reply with quote

Check the clock - Obtain and manipulate dates and times page and do it yourself.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Jun 04, 2006 12:37 pm    Post subject: Reply with quote

Actually there is a script called worldtime.tcl around here, which can be changed to query it. I am personally currently working on something major about time zones, but I cannot find the ideal way/page to query the offset from a timezone name. It currently looks like I'd have to temporarily change env(TZ) ^-^.
But queriing GMT times can be done via RFC 867 or RFC 868 time servers, if the shell local time is not accurate enough.

@caesar:
I dont want to discourage you, but clock in TCL 8.4 has a few less features. I would be happy to be able to use these Wink
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Sun Jun 04, 2006 5:06 pm    Post subject: lol Reply with quote

Thanks De Kus,

I tried it but it dont work, seems its a VERY old script, back from 2001 it says Sad no longer works lol
Oh well, thanks anyway Razz
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Jun 05, 2006 6:37 am    Post subject: Reply with quote

I think there was a fix floating around... Though I am not sure, if it can still query the most recent changes of the layout.
I changed the regexp to
Code:
regexp {<div id="analog-digital"><font size="7">(.+?)</font></div>} $tzout {} tztime

when the site changed last time, but since I changed many things, I have no idea, if you can use that in any way Very Happy.
and the url is created now by:
Code:
set url "/current_time_in_[lindex $tempurl 0].aspx?[lindex $tempurl 1]"

_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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