From ed77c2aaf1ceb376ab276026671bd05e81f06ac0 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sat, 17 May 2025 11:15:05 +0200 Subject: [PATCH] Allow dates to be used in timer command And some general cleanup of a couple of functions. --- commands/misc/timer.js | 11 ++++++----- server.js | 1 + util/timer/createTimer.js | 23 ++++++++++++++++------- util/timer/parseTime.js | 20 +++++--------------- util/timer/timeUntil.js | 20 ++++++++++++++++++++ 5 files changed, 48 insertions(+), 27 deletions(-) create mode 100644 util/timer/timeUntil.js diff --git a/commands/misc/timer.js b/commands/misc/timer.js index 746689b..472af1b 100644 --- a/commands/misc/timer.js +++ b/commands/misc/timer.js @@ -4,11 +4,11 @@ const parseTime = require('../../util/timer/parseTime'); const showTimer = require('../../util/timer/showTimer'); module.exports = { name: "timer", - description: "Set a timer for a time in minutes.", + description: "Set a timer for a date or time duration.", moreHelp: ["Usage:" ,"`timer [add|create] `" ,"`timer