From 505c28ad21f1140464ceceb9e33eb41f5cf6ceca Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 30 May 2025 21:58:31 -0400 Subject: [PATCH] Add check for time --- commands/events/time.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/events/time.js b/commands/events/time.js index 2ad37c13..8f1c3891 100644 --- a/commands/events/time.js +++ b/commands/events/time.js @@ -36,10 +36,11 @@ module.exports = class TimeCommand extends Command { run(msg, { timeZone }) { const time = moment().tz(timeZone).format('h:mm A'); const location = timeZone.split('/'); + const word = location === 'lily' ? 'for' : 'is'; const main = firstUpperCase(location[0], /[_ ]/); const sub = location[1] ? firstUpperCase(location[1], /[_ ]/) : null; const subMain = location[2] ? firstUpperCase(location[2], /[_ ]/) : null; const parens = sub ? ` (${subMain ? `${sub}, ` : ''}${main})` : ''; - return msg.say(`The current time in ${subMain || sub || main}${parens} is ${time}.`); + return msg.say(`The current time ${word} ${subMain || sub || main}${parens} is ${time}.`); } }; diff --git a/package.json b/package.json index c694c63d..b70c0686 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "152.4.11", + "version": "152.4.12", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {