This repository has been archived on 2026-02-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

20 lines
430 B
TypeScript

import { ShortcutsResponse } from '../types';
export async function timeCommand(): Promise<ShortcutsResponse> {
const now = new Date();
const timeString = now.toLocaleTimeString('en-US', {
hour: 'numeric',
minute: 'numeric',
hour12: true
});
return {
success: true,
message: `It's currently ${timeString}`,
data: {
timestamp: now.toISOString(),
formattedTime: timeString
}
};
}