aboutsummaryrefslogtreecommitdiff
path: root/src/arguments
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-03 11:11:00 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-03 11:11:00 -0400
commit3e845f120fa1bb0f38e54969238a4d27abad7098 (patch)
tree07b7c2191daa5d3ddb059d07bab5306a1591bf9e /src/arguments
parent0d73d6956ae2b23ad12a677749a60967bfa0bb55 (diff)
downloadtanzanite-3e845f120fa1bb0f38e54969238a4d27abad7098.tar.gz
tanzanite-3e845f120fa1bb0f38e54969238a4d27abad7098.tar.bz2
tanzanite-3e845f120fa1bb0f38e54969238a4d27abad7098.zip
add setxp command
Diffstat (limited to 'src/arguments')
-rw-r--r--src/arguments/abbreviatedNumber.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arguments/abbreviatedNumber.ts b/src/arguments/abbreviatedNumber.ts
new file mode 100644
index 0000000..9da7063
--- /dev/null
+++ b/src/arguments/abbreviatedNumber.ts
@@ -0,0 +1,6 @@
+import { BushArgumentTypeCaster } from '@lib';
+import numeral = require('numeral');
+
+export const abbreviatedNumberTypeCaster: BushArgumentTypeCaster = (_, phrase): number | null => {
+ return numeral(phrase?.toLowerCase()).value();
+};