diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-27 18:08:14 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-27 18:08:14 -0400 |
| commit | 747b3c8302245699294b671d19b3d31d63f80bc1 (patch) | |
| tree | ad3d987bb38d5bdaed67e6aca1263fb06331f746 /src/lib/utils | |
| parent | 4176b6258e44e4a095376aaf0f4c687244243a69 (diff) | |
| download | tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.tar.gz tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.tar.bz2 tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.zip | |
did this a while ago so I don't remeber what I did
Diffstat (limited to 'src/lib/utils')
| -rw-r--r-- | src/lib/utils/BushConstants.ts | 36 |
1 files changed, 36 insertions, 0 deletions
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: { |
