From 747b3c8302245699294b671d19b3d31d63f80bc1 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 27 Jun 2021 18:08:14 -0400 Subject: did this a while ago so I don't remeber what I did --- src/lib/utils/BushConstants.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/lib/utils') diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts index 1015229..0e3f6bb 100644 --- a/src/lib/utils/BushConstants.ts +++ b/src/lib/utils/BushConstants.ts @@ -1,4 +1,40 @@ export class BushConstants { + // Stolen from @Mzato0001 (pr to discord akairo that hasn't been merged yet) + public static TimeUnits = { + years: { + label: '(?:years?|y)', + value: 1000 * 60 * 60 * 24 * 365 + }, + months: { + label: '(?:months?|mon|mo?)', + value: 1000 * 60 * 60 * 24 * 30 + }, + weeks: { + label: '(?:weeks?|w)', + value: 1000 * 60 * 60 * 24 * 7 + }, + days: { + label: '(?:days?|d)', + value: 1000 * 60 * 60 * 24 + }, + hours: { + label: '(?:hours?|hrs?|h)', + value: 1000 * 60 * 60 + }, + minutes: { + label: '(?:minutes?|mins?)', + value: 1000 * 60 + }, + seconds: { + label: '(?:seconds?|secs?|s)', + value: 1000 + }, + milliseconds: { + label: '(?:milliseconds?|msecs?|ms)', + value: 1 + } + }; + /** A bunch of mappings */ public static mappings = { guilds: { -- cgit