Ticket #150 (new enhancement)

Opened 1 year ago

Last modified 3 months ago

HubBot command to see time of last core update

Reported by: dugwyler Assigned to: subby
Priority: normal Component: Core
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description

It would be useful to have a command that would be able to tell us when the core on a hub was last updated.

This could be done by comparing the date/time of twcore.jar at startup with the date of the last update, held in a hidden file. If the dates differed, the newer date would overwrite the old one. In either case the date would be stored, to be displayed when a HubBot command is used.

Attachments

Change History

04/01/08 02:30:33 changed by Maverick

Unfortunately Subversion doesn't support a repository-wide $Revision$ variable that is expanded upon commit (like CVS has).

I suggest creating a new !version command in the Hubbot with something like "::$VERSION$::" that's replaced with revision information by the shell script that exports TWCore.
Unfortunately this also has to be done in the windows .bat export scripts so the text is also replaced on windows.

04/30/08 16:18:03 changed by milosh

  • component changed from Bots - Other to Core.

05/08/08 06:56:56 changed by subby

im not sure what you mean by that update thing but one version check could be done just cheking the date when twcore was compiled?

long File.lastModified()

am i completely wrong about this

05/08/08 10:15:22 changed by Maverick

Yes, this is an option. However, we like to work with Subversion revision numbers instead of dates as that's more easier for us.

05/09/08 06:01:12 changed by dugwyler

Both would be ideal, the SVN revision number being more helpful, but really the date on the jar would be better than nothing. Until we can figure out a clean way to get the SVN revision (something hard to integrate into "general" TWCore running on other zones w/o SVN) I'd say this is a good substitute.

05/09/08 07:45:43 changed by subby

  • owner set to subby.

Add/Change #150 (HubBot command to see time of last core update)




Change Properties
Action