Archived
0
0
Fork 0

chore: added & fixed a bunch of stuff

This commit is contained in:
Daryl Ronningen 2021-06-17 01:25:51 -07:00
parent 8e3b27fb5b
commit 5c89002445
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
5 changed files with 183 additions and 479 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint -E HUSKY_GIT_PARAMS
yarn commitlint --edit

View file

@ -0,0 +1 @@
# Argon Bot

View file

@ -73,7 +73,6 @@
"@yarnpkg/pnpify": "^3.0.0-rc.6",
"eslint": "^7.28.0",
"eslint-formatter-pretty": "^4.1.0",
"eslint-plugin-import": "^2.23.4",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"mocha": "^9.0.0",
@ -95,7 +94,6 @@
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
@ -149,7 +147,7 @@
"reportUnusedDisableDirectives": true
},
"lint-staged": {
"src/**/*.ts": [
"src/**/*": [
"yarn lint"
]
},

View file

@ -24,7 +24,7 @@ import gradient from 'gradient-string';
import { token } from '../config.json';
import { debug, error, info } from './utils/logger';
debug('Starting bot... Please wait');
debug('Starting bot... Please wait!');
figlet('Argon Bot', (err, data) => {
if (err) error(`Figlet encountered an error!\n${err.message}`);

317
yarn.lock
View file

@ -814,13 +814,6 @@ __metadata:
languageName: node
linkType: hard
"@types/json5@npm:^0.0.29":
version: 0.0.29
resolution: "@types/json5@npm:0.0.29"
checksum: e60b153664572116dfea673c5bda7778dbff150498f44f998e34b5886d8afc47f16799280e4b6e241c0472aef1bc36add771c569c68fc5125fc2ae519a3eb9ac
languageName: node
linkType: hard
"@types/keyv@npm:*, @types/keyv@npm:^3.1.1":
version: 3.1.1
resolution: "@types/keyv@npm:3.1.1"
@ -1477,7 +1470,6 @@ __metadata:
erlpack: ^0.1.3
eslint: ^7.28.0
eslint-formatter-pretty: ^4.1.0
eslint-plugin-import: ^2.23.4
ffmpeg-static: ^4.3.0
figlet: ^1.5.0
gradient-string: ^1.2.0
@ -1535,19 +1527,6 @@ __metadata:
languageName: node
linkType: hard
"array-includes@npm:^3.1.3":
version: 3.1.3
resolution: "array-includes@npm:3.1.3"
dependencies:
call-bind: ^1.0.2
define-properties: ^1.1.3
es-abstract: ^1.18.0-next.2
get-intrinsic: ^1.1.1
is-string: ^1.0.5
checksum: eaab8812412b5ec921c8fe678a9d61f501b12f6c72e271e0e8652fe7f4145276cc7ad79ff303ac4ed69cbf5135155bfb092b1b6d552e423e75106d1c887da150
languageName: node
linkType: hard
"array-union@npm:^2.1.0":
version: 2.1.0
resolution: "array-union@npm:2.1.0"
@ -1555,17 +1534,6 @@ __metadata:
languageName: node
linkType: hard
"array.prototype.flat@npm:^1.2.4":
version: 1.2.4
resolution: "array.prototype.flat@npm:1.2.4"
dependencies:
call-bind: ^1.0.0
define-properties: ^1.1.3
es-abstract: ^1.18.0-next.1
checksum: 1ec5d9887ae45e70e4b993e801b440ae5ddcd0d2c6d1dbe214c311e91436152f510916bdac82b066693544b9801a3c510dfbec8a278ababf8de7eb0bde74636f
languageName: node
linkType: hard
"arrify@npm:^1.0.1":
version: 1.0.1
resolution: "arrify@npm:1.0.1"
@ -1793,7 +1761,7 @@ __metadata:
languageName: node
linkType: hard
"call-bind@npm:^1.0.0, call-bind@npm:^1.0.2":
"call-bind@npm:^1.0.0":
version: 1.0.2
resolution: "call-bind@npm:1.0.2"
dependencies:
@ -2521,7 +2489,7 @@ __metadata:
languageName: node
linkType: hard
"debug@npm:^2.2.0, debug@npm:^2.6.9":
"debug@npm:^2.2.0":
version: 2.6.9
resolution: "debug@npm:2.6.9"
dependencies:
@ -2530,7 +2498,7 @@ __metadata:
languageName: node
linkType: hard
"debug@npm:^3.2.6, debug@npm:^3.2.7":
"debug@npm:^3.2.6":
version: 3.2.7
resolution: "debug@npm:3.2.7"
dependencies:
@ -2726,15 +2694,6 @@ __metadata:
languageName: node
linkType: hard
"doctrine@npm:^2.1.0":
version: 2.1.0
resolution: "doctrine@npm:2.1.0"
dependencies:
esutils: ^2.0.2
checksum: a45e277f7feaed309fe658ace1ff286c6e2002ac515af0aaf37145b8baa96e49899638c7cd47dccf84c3d32abfc113246625b3ac8f552d1046072adee13b0dc8
languageName: node
linkType: hard
"doctrine@npm:^3.0.0":
version: 3.0.0
resolution: "doctrine@npm:3.0.0"
@ -2861,41 +2820,6 @@ __metadata:
languageName: node
linkType: hard
"es-abstract@npm:^1.18.0-next.1, es-abstract@npm:^1.18.0-next.2, es-abstract@npm:^1.18.2":
version: 1.18.3
resolution: "es-abstract@npm:1.18.3"
dependencies:
call-bind: ^1.0.2
es-to-primitive: ^1.2.1
function-bind: ^1.1.1
get-intrinsic: ^1.1.1
has: ^1.0.3
has-symbols: ^1.0.2
is-callable: ^1.2.3
is-negative-zero: ^2.0.1
is-regex: ^1.1.3
is-string: ^1.0.6
object-inspect: ^1.10.3
object-keys: ^1.1.1
object.assign: ^4.1.2
string.prototype.trimend: ^1.0.4
string.prototype.trimstart: ^1.0.4
unbox-primitive: ^1.0.1
checksum: 6bbf526b5a60cdbd390397644facbf654fc6616564614533a5ce223ecc185f7812a1f45c3ab6d0334b4ff2e8f554237539f4d05a0fceb036be24dd5d1ec022b0
languageName: node
linkType: hard
"es-to-primitive@npm:^1.2.1":
version: 1.2.1
resolution: "es-to-primitive@npm:1.2.1"
dependencies:
is-callable: ^1.1.4
is-date-object: ^1.0.1
is-symbol: ^1.0.2
checksum: 4ead6671a2c1402619bdd77f3503991232ca15e17e46222b0a41a5d81aebc8740a77822f5b3c965008e631153e9ef0580540007744521e72de8e33599fca2eed
languageName: node
linkType: hard
"es6-error@npm:^4.0.1":
version: 4.1.1
resolution: "es6-error@npm:4.1.1"
@ -2947,51 +2871,6 @@ __metadata:
languageName: node
linkType: hard
"eslint-import-resolver-node@npm:^0.3.4":
version: 0.3.4
resolution: "eslint-import-resolver-node@npm:0.3.4"
dependencies:
debug: ^2.6.9
resolve: ^1.13.1
checksum: a0db55ec26c5bb385c8681af6b8d6dee16768d5f27dff72c3113407d0f028f28e56dcb1cc3a4689c79396a5f6a9c24bd0cac9a2c9c588c7d7357d24a42bec876
languageName: node
linkType: hard
"eslint-module-utils@npm:^2.6.1":
version: 2.6.1
resolution: "eslint-module-utils@npm:2.6.1"
dependencies:
debug: ^3.2.7
pkg-dir: ^2.0.0
checksum: 3cc43a36a0075d300db6a3946203ec92249b6da1539694ef205a43b4ccfbc2eaf4961475d4b89c24b12c187d6bfd882c7c7d0b2ce02adb40c2dedb7fd022a7e2
languageName: node
linkType: hard
"eslint-plugin-import@npm:^2.23.4":
version: 2.23.4
resolution: "eslint-plugin-import@npm:2.23.4"
dependencies:
array-includes: ^3.1.3
array.prototype.flat: ^1.2.4
debug: ^2.6.9
doctrine: ^2.1.0
eslint-import-resolver-node: ^0.3.4
eslint-module-utils: ^2.6.1
find-up: ^2.0.0
has: ^1.0.3
is-core-module: ^2.4.0
minimatch: ^3.0.4
object.values: ^1.1.3
pkg-up: ^2.0.0
read-pkg-up: ^3.0.0
resolve: ^1.20.0
tsconfig-paths: ^3.9.0
peerDependencies:
eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0
checksum: 8c64bb96fa35607de3da1ddf5d127a5913aebde5677bc276c55fecb3e539a7287569dc697af4f5c523bd2b08bff8f5b525448df5aa7d6256c86436b615be5abc
languageName: node
linkType: hard
"eslint-rule-docs@npm:^1.1.5":
version: 1.1.227
resolution: "eslint-rule-docs@npm:1.1.227"
@ -3335,7 +3214,7 @@ __metadata:
languageName: node
linkType: hard
"find-up@npm:^2.0.0, find-up@npm:^2.1.0":
"find-up@npm:^2.0.0":
version: 2.1.0
resolution: "find-up@npm:2.1.0"
dependencies:
@ -3505,7 +3384,7 @@ __metadata:
languageName: node
linkType: hard
"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.1":
"get-intrinsic@npm:^1.0.2":
version: 1.1.1
resolution: "get-intrinsic@npm:1.1.1"
dependencies:
@ -3797,13 +3676,6 @@ __metadata:
languageName: node
linkType: hard
"has-bigints@npm:^1.0.1":
version: 1.0.1
resolution: "has-bigints@npm:1.0.1"
checksum: 44ab55868174470065d2e0f8f6def1c990d12b82162a8803c679699fa8a39f966e336f2a33c185092fe8aea7e8bf2e85f1c26add5f29d98f2318bd270096b183
languageName: node
linkType: hard
"has-flag@npm:^3.0.0":
version: 3.0.0
resolution: "has-flag@npm:3.0.0"
@ -3832,7 +3704,7 @@ __metadata:
languageName: node
linkType: hard
"has-symbols@npm:^1.0.1, has-symbols@npm:^1.0.2":
"has-symbols@npm:^1.0.1":
version: 1.0.2
resolution: "has-symbols@npm:1.0.2"
checksum: 2309c426071731be792b5be43b3da6fb4ed7cbe8a9a6bcfca1862587709f01b33d575ce8f5c264c1eaad09fca2f9a8208c0a2be156232629daa2dd0c0740976b
@ -4144,13 +4016,6 @@ __metadata:
languageName: node
linkType: hard
"is-bigint@npm:^1.0.1":
version: 1.0.2
resolution: "is-bigint@npm:1.0.2"
checksum: 5268edbde844583d8d5ce86f8e47669bf9dd9b3d4de0238b25bb2ddfc620b47e0e226171a906f19ac4c10debba160353fb98c134d0309898495e1b691efcfb80
languageName: node
linkType: hard
"is-binary-path@npm:~2.1.0":
version: 2.1.0
resolution: "is-binary-path@npm:2.1.0"
@ -4160,16 +4025,7 @@ __metadata:
languageName: node
linkType: hard
"is-boolean-object@npm:^1.1.0":
version: 1.1.1
resolution: "is-boolean-object@npm:1.1.1"
dependencies:
call-bind: ^1.0.2
checksum: 95b832242638b8495d012538716761122dfc4a930baf2aa676e0bc344fe39cda2364c739893a6d07d10863ced67cc95e11884732104d7904bd0d896033414d11
languageName: node
linkType: hard
"is-callable@npm:^1.1.4, is-callable@npm:^1.1.5, is-callable@npm:^1.2.3":
"is-callable@npm:^1.1.5":
version: 1.2.3
resolution: "is-callable@npm:1.2.3"
checksum: 084a732afd78e14a40cd5f6f34001edd500f43bb542991c1305b88842cab5f2fb6b48f0deed4cd72270b2e71cab3c3a56c69b324e3a02d486f937824bb7de553
@ -4187,7 +4043,7 @@ __metadata:
languageName: node
linkType: hard
"is-core-module@npm:^2.2.0, is-core-module@npm:^2.4.0":
"is-core-module@npm:^2.2.0":
version: 2.4.0
resolution: "is-core-module@npm:2.4.0"
dependencies:
@ -4196,13 +4052,6 @@ __metadata:
languageName: node
linkType: hard
"is-date-object@npm:^1.0.1":
version: 1.0.4
resolution: "is-date-object@npm:1.0.4"
checksum: 20ce7b73fda926b4dfad2457e0d6fa04bb0a4cf555456d68918e334cbf80ac30523155adac420be0c8a4bc126fafe0874c4cfc0ffe0d97bac6333a8f02de1b94
languageName: node
linkType: hard
"is-extglob@npm:^2.1.1":
version: 2.1.1
resolution: "is-extglob@npm:2.1.1"
@ -4266,13 +4115,6 @@ __metadata:
languageName: node
linkType: hard
"is-negative-zero@npm:^2.0.1":
version: 2.0.1
resolution: "is-negative-zero@npm:2.0.1"
checksum: a46f2e0cb5e16fdb8f2011ed488979386d7e68d381966682e3f4c98fc126efe47f26827912baca2d06a02a644aee458b9cba307fb389f6b161e759125db7a3b8
languageName: node
linkType: hard
"is-npm@npm:^4.0.0":
version: 4.0.0
resolution: "is-npm@npm:4.0.0"
@ -4280,13 +4122,6 @@ __metadata:
languageName: node
linkType: hard
"is-number-object@npm:^1.0.4":
version: 1.0.5
resolution: "is-number-object@npm:1.0.5"
checksum: 8c217b4a16632fc3a900121792e4293f2d2d3c73158895deca4593aa4779995203fc6f31b57b47d90df981936a82ea4e8e8a3af2e5ed646cf979287c1d201089
languageName: node
linkType: hard
"is-number@npm:^7.0.0":
version: 7.0.0
resolution: "is-number@npm:7.0.0"
@ -4329,16 +4164,6 @@ __metadata:
languageName: node
linkType: hard
"is-regex@npm:^1.1.3":
version: 1.1.3
resolution: "is-regex@npm:1.1.3"
dependencies:
call-bind: ^1.0.2
has-symbols: ^1.0.2
checksum: 19a831a1ba88d09bb43ab30194672e6ae1461caff27254d2c160ed63c95015155ad8784e80995e46a637d0880da8f4ed63b5c3242af1b49c0b5c4666a7a2d3d8
languageName: node
linkType: hard
"is-regexp@npm:^1.0.0":
version: 1.0.0
resolution: "is-regexp@npm:1.0.0"
@ -4353,22 +4178,6 @@ __metadata:
languageName: node
linkType: hard
"is-string@npm:^1.0.5, is-string@npm:^1.0.6":
version: 1.0.6
resolution: "is-string@npm:1.0.6"
checksum: 9990bf0abf2eea6255f0218f82ba1bcfc8d27923af99bcbb2c77ec5eae4ddbe6c23f1f916d6f19f9e9aa57ec7cd8a91a3e026a34e207c51af35fced1ad50bba8
languageName: node
linkType: hard
"is-symbol@npm:^1.0.2, is-symbol@npm:^1.0.3":
version: 1.0.4
resolution: "is-symbol@npm:1.0.4"
dependencies:
has-symbols: ^1.0.2
checksum: 92805812ef590738d9de49d677cd17dfd486794773fb6fa0032d16452af46e9b91bb43ffe82c983570f015b37136f4b53b28b8523bfb10b0ece7a66c31a54510
languageName: node
linkType: hard
"is-text-path@npm:^1.0.1":
version: 1.0.1
resolution: "is-text-path@npm:1.0.1"
@ -4628,17 +4437,6 @@ __metadata:
languageName: node
linkType: hard
"json5@npm:^1.0.1":
version: 1.0.1
resolution: "json5@npm:1.0.1"
dependencies:
minimist: ^1.2.0
bin:
json5: lib/cli.js
checksum: e76ea23dbb8fc1348c143da628134a98adf4c5a4e8ea2adaa74a80c455fc2cdf0e2e13e6398ef819bfe92306b610ebb2002668ed9fc1af386d593691ef346fc3
languageName: node
linkType: hard
"json5@npm:^2.1.2":
version: 2.2.0
resolution: "json5@npm:2.2.0"
@ -5571,13 +5369,6 @@ __metadata:
languageName: node
linkType: hard
"object-inspect@npm:^1.10.3":
version: 1.10.3
resolution: "object-inspect@npm:1.10.3"
checksum: 9a56db2e0146fe94a7a9c78f677a2a28eec11d0ae13430e0bb2cb908fdd2d3feb7dbba7c638b9b7f88ace01d9a937227a8801709d13afb76613775aeb68632d3
languageName: node
linkType: hard
"object-keys@npm:^1.0.12, object-keys@npm:^1.1.1":
version: 1.1.1
resolution: "object-keys@npm:1.1.1"
@ -5585,7 +5376,7 @@ __metadata:
languageName: node
linkType: hard
"object.assign@npm:^4.1.0, object.assign@npm:^4.1.2":
"object.assign@npm:^4.1.0":
version: 4.1.2
resolution: "object.assign@npm:4.1.2"
dependencies:
@ -5597,17 +5388,6 @@ __metadata:
languageName: node
linkType: hard
"object.values@npm:^1.1.3":
version: 1.1.4
resolution: "object.values@npm:1.1.4"
dependencies:
call-bind: ^1.0.2
define-properties: ^1.1.3
es-abstract: ^1.18.2
checksum: 1a2f1e9d0bcfc299b8491170a50e6e7ca23392641d7781a8528e96c72f0013ba7ee731792ff8586c8eaec0328acda16c59622924c82c58bd0eb5c4ee67794856
languageName: node
linkType: hard
"once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0":
version: 1.4.0
resolution: "once@npm:1.4.0"
@ -5977,15 +5757,6 @@ __metadata:
languageName: node
linkType: hard
"pkg-dir@npm:^2.0.0":
version: 2.0.0
resolution: "pkg-dir@npm:2.0.0"
dependencies:
find-up: ^2.1.0
checksum: 8c72b712305b51e1108f0ffda5ec1525a8307e54a5855db8fb1dcf77561a5ae98e2ba3b4814c9806a679f76b2f7e5dd98bde18d07e594ddd9fdd25e9cf242ea1
languageName: node
linkType: hard
"pkg-dir@npm:^4.1.0":
version: 4.2.0
resolution: "pkg-dir@npm:4.2.0"
@ -5995,15 +5766,6 @@ __metadata:
languageName: node
linkType: hard
"pkg-up@npm:^2.0.0":
version: 2.0.0
resolution: "pkg-up@npm:2.0.0"
dependencies:
find-up: ^2.1.0
checksum: de4b418175281a082e366ce1a919f032520ee53cf421578b35173f03816f6ec4c19e1552066840bb0988c3e1215859653948efd6ca3507a23f4f44229269500d
languageName: node
linkType: hard
"please-upgrade-node@npm:^3.2.0":
version: 3.2.0
resolution: "please-upgrade-node@npm:3.2.0"
@ -6494,7 +6256,7 @@ __metadata:
languageName: node
linkType: hard
"resolve@^1.1.6, resolve@^1.10.0, resolve@^1.13.1, resolve@^1.17.0, resolve@^1.20.0":
"resolve@^1.1.6, resolve@^1.10.0, resolve@^1.17.0, resolve@^1.20.0":
version: 1.20.0
resolution: "resolve@npm:1.20.0"
dependencies:
@ -6504,7 +6266,7 @@ __metadata:
languageName: node
linkType: hard
"resolve@patch:resolve@^1.1.6#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.13.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.17.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>":
"resolve@patch:resolve@^1.1.6#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.17.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>":
version: 1.20.0
resolution: "resolve@patch:resolve@npm%3A1.20.0#~builtin<compat/resolve>::version=1.20.0&hash=00b1ff"
dependencies:
@ -7047,26 +6809,6 @@ __metadata:
languageName: node
linkType: hard
"string.prototype.trimend@npm:^1.0.4":
version: 1.0.4
resolution: "string.prototype.trimend@npm:1.0.4"
dependencies:
call-bind: ^1.0.2
define-properties: ^1.1.3
checksum: 17e5aa45c3983f582693161f972c1c1fa4bbbdf22e70e582b00c91b6575f01680dc34e83005b98e31abe4d5d29e0b21fcc24690239c106c7b2315aade6a898ac
languageName: node
linkType: hard
"string.prototype.trimstart@npm:^1.0.4":
version: 1.0.4
resolution: "string.prototype.trimstart@npm:1.0.4"
dependencies:
call-bind: ^1.0.2
define-properties: ^1.1.3
checksum: 3fb06818d3cccac5fa3f5f9873d984794ca0e9f6616fae6fcc745885d9efed4e17fe15f832515d9af5e16c279857fdbffdfc489ca4ed577811b017721b30302f
languageName: node
linkType: hard
"string_decoder@npm:^1.1.1":
version: 1.3.0
resolution: "string_decoder@npm:1.3.0"
@ -7458,18 +7200,6 @@ __metadata:
languageName: node
linkType: hard
"tsconfig-paths@npm:^3.9.0":
version: 3.9.0
resolution: "tsconfig-paths@npm:3.9.0"
dependencies:
"@types/json5": ^0.0.29
json5: ^1.0.1
minimist: ^1.2.0
strip-bom: ^3.0.0
checksum: 243b3b098c76a4ca90ea0431683f3755a4ff175c6123bcba5f7b4bd80fe2ef8fa9bdc8f4d525148a1e71ade7f3e037e7c0313ae177fd12398ab68f05c2c7f25d
languageName: node
linkType: hard
"tslib@npm:^1.13.0, tslib@npm:^1.8.1, tslib@npm:^1.9.0":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
@ -7625,18 +7355,6 @@ typescript@^4.3.3:
languageName: node
linkType: hard
"unbox-primitive@npm:^1.0.1":
version: 1.0.1
resolution: "unbox-primitive@npm:1.0.1"
dependencies:
function-bind: ^1.1.1
has-bigints: ^1.0.1
has-symbols: ^1.0.2
which-boxed-primitive: ^1.0.2
checksum: 89d950e18fb45672bc6b3c961f1e72c07beb9640c7ceed847b571ba6f7d2af570ae1a2584cfee268b9d9ea1e3293f7e33e0bc29eaeb9f8e8a0bab057ff9e6bba
languageName: node
linkType: hard
"undefsafe@npm:^2.0.3":
version: 2.0.3
resolution: "undefsafe@npm:2.0.3"
@ -7780,19 +7498,6 @@ typescript@^4.3.3:
languageName: node
linkType: hard
"which-boxed-primitive@npm:^1.0.2":
version: 1.0.2
resolution: "which-boxed-primitive@npm:1.0.2"
dependencies:
is-bigint: ^1.0.1
is-boolean-object: ^1.1.0
is-number-object: ^1.0.4
is-string: ^1.0.5
is-symbol: ^1.0.3
checksum: 53ce774c7379071729533922adcca47220228405e1895f26673bbd71bdf7fb09bee38c1d6399395927c6289476b5ae0629863427fd151491b71c4b6cb04f3a5e
languageName: node
linkType: hard
"which-module@npm:^2.0.0":
version: 2.0.0
resolution: "which-module@npm:2.0.0"