1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

Compare commits

...

28 Commits

Author SHA1 Message Date
Toast
955a0a8f7b
Merge 6a254e897e into b14de3201d 2024-03-11 06:32:35 +00:00
toast-ts
6a254e897e Merge branch 'master' into sequelize-v7 2024-03-11 17:32:31 +11:00
dependabot[bot]
b14de3201d
Bump undici from 6.7.0 to 6.7.1 (#93)
Bumps [undici](https://github.com/nodejs/undici) from 6.7.0 to 6.7.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.7.0...v6.7.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 12:54:10 +11:00
toast-ts
0ad5c2cc37 Forward attachments too. 2024-03-09 17:40:40 +11:00
toast-ts
a2fe3afdb7 Hide username for anonymity reasons 2024-03-09 17:13:09 +11:00
toast-ts
9d1c8dd238 Update TypeScript to 5.4.2 2024-03-08 09:08:09 +11:00
toast-ts
754881c93f Update Yarn to 4.1.1 2024-03-06 11:12:36 +11:00
toast-ts
59ba9abccf Use ??= instead of ternary operator 2024-03-05 11:21:08 +11:00
toast-ts
8abe1dfaf2 Add channelUpdate event 2024-03-05 11:03:04 +11:00
toast-ts
66c6dc9aa3 Merge branch 'master' into sequelize-v7 2024-03-04 13:29:48 +11:00
toast-ts
1866ac8cb7 Merge branch 'master' into sequelize-v7 2024-03-04 13:27:12 +11:00
toast-ts
29437ef5d7 Remove autoresponses for Monster 2024-03-04 13:26:48 +11:00
toast-ts
50d12f39be Merge branch 'master' into sequelize-v7 2024-03-04 11:06:18 +11:00
toast-ts
20f2ac5656 Merge branch 'master' into sequelize-v7 2024-03-03 19:17:49 +11:00
toast-ts
e841712456 Merge branch 'master' into sequelize-v7 2024-02-28 20:21:36 +11:00
toast-ts
8e367e4c80 Merge branch 'master' into sequelize-v7 2024-02-26 13:49:25 +11:00
toast-ts
14077381ac Merge branch 'master' into sequelize-v7 2024-02-25 20:42:26 +11:00
toast-ts
424de10a8c Optimize functions in punishment model 2024-02-25 20:39:32 +11:00
toast-ts
cd40816e8f Log transaction failed const to console instead of nowhere 2024-02-25 20:19:27 +11:00
toast-ts
afc04047eb Update @types/pg 2024-02-25 20:17:14 +11:00
toast-ts
54d0db19b6 Merge branch 'master' into sequelize-v7 2024-02-25 20:15:08 +11:00
toast-ts
7ca33f1de8 Clean up some of the stuff 2024-02-25 20:14:17 +11:00
toast-ts
e42b4ed857 Merge branch 'master' into sequelize-v7 2024-02-24 16:45:15 +11:00
toast-ts
890aa5292d Merge branch 'master' into sequelize-v7 2024-02-22 08:05:10 +11:00
toast-ts
827881c136 Merge branch 'master' into sequelize-v7 2024-02-20 07:57:45 +11:00
toast-ts
aaf746db5e Merge branch 'master' into sequelize-v7 2024-02-18 09:00:56 +11:00
toast-ts
8b541cbed3 Merge branch 'master' into sequelize-v7 2024-02-13 08:29:25 +11:00
toast-ts
4fb097fa70 Sync Sequelize v7 changes from Canary repository 2024-02-12 19:55:45 +11:00
32 changed files with 880 additions and 543 deletions

537
.pnp.cjs generated
View File

@ -26,14 +26,14 @@ const RAW_RUNTIME_STATE =
[null, {\
"packageLocation": "./",\
"packageDependencies": [\
["@napi-rs/canvas", "npm:0.1.50"],\
["@napi-rs/canvas", "npm:0.1.51"],\
["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.14::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.14%2Ftokenservice-client-1.0.14.tgz"],\
["@sequelize/core", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:7.0.0-alpha.37"],\
["@toast/tokenservice-client", "npm:1.0.16::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.16%2Ftokenservice-client-1.0.16.tgz"],\
["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.24"],\
["@types/node", "npm:20.11.25"],\
["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.11.2"],\
["@types/sequelize", "npm:4.28.20"],\
["ansi-colors", "npm:4.1.3"],\
["dayjs", "npm:1.11.10"],\
["discord.js", "npm:14.14.1"],\
@ -43,12 +43,12 @@ const RAW_RUNTIME_STATE =
["node-cron", "npm:3.0.3"],\
["pg", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:8.11.3"],\
["pg-hstore", "npm:2.3.4"],\
["postgres-array", "npm:3.0.2"],\
["redis", "npm:4.6.13"],\
["sequelize", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.37.1"],\
["simple-git", "npm:3.22.0"],\
["systeminformation", "npm:5.22.0"],\
["typescript", "patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"],\
["undici", "npm:6.7.0"]\
["typescript", "patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c"],\
["undici", "npm:6.7.1"]\
],\
"linkType": "SOFT"\
}]\
@ -179,100 +179,131 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["@napi-rs/canvas", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/cache/@napi-rs-canvas-npm-0.1.50-6d57a400a9-c9ed3ecdaa.zip/node_modules/@napi-rs/canvas/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/cache/@napi-rs-canvas-npm-0.1.51-af269bc98a-10d4e8f884.zip/node_modules/@napi-rs/canvas/",\
"packageDependencies": [\
["@napi-rs/canvas", "npm:0.1.50"],\
["@napi-rs/canvas-android-arm64", "npm:0.1.50"],\
["@napi-rs/canvas-darwin-arm64", "npm:0.1.50"],\
["@napi-rs/canvas-darwin-x64", "npm:0.1.50"],\
["@napi-rs/canvas-linux-arm-gnueabihf", "npm:0.1.50"],\
["@napi-rs/canvas-linux-arm64-gnu", "npm:0.1.50"],\
["@napi-rs/canvas-linux-arm64-musl", "npm:0.1.50"],\
["@napi-rs/canvas-linux-x64-gnu", "npm:0.1.50"],\
["@napi-rs/canvas-linux-x64-musl", "npm:0.1.50"],\
["@napi-rs/canvas-win32-x64-msvc", "npm:0.1.50"]\
["@napi-rs/canvas", "npm:0.1.51"],\
["@napi-rs/canvas-android-arm64", "npm:0.1.51"],\
["@napi-rs/canvas-darwin-arm64", "npm:0.1.51"],\
["@napi-rs/canvas-darwin-x64", "npm:0.1.51"],\
["@napi-rs/canvas-linux-arm-gnueabihf", "npm:0.1.51"],\
["@napi-rs/canvas-linux-arm64-gnu", "npm:0.1.51"],\
["@napi-rs/canvas-linux-arm64-musl", "npm:0.1.51"],\
["@napi-rs/canvas-linux-x64-gnu", "npm:0.1.51"],\
["@napi-rs/canvas-linux-x64-musl", "npm:0.1.51"],\
["@napi-rs/canvas-win32-x64-msvc", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-android-arm64", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-android-arm64-npm-0.1.50-11d6135d75/node_modules/@napi-rs/canvas-android-arm64/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-android-arm64-npm-0.1.51-34205099a0/node_modules/@napi-rs/canvas-android-arm64/",\
"packageDependencies": [\
["@napi-rs/canvas-android-arm64", "npm:0.1.50"]\
["@napi-rs/canvas-android-arm64", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-darwin-arm64", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-darwin-arm64-npm-0.1.50-6b2d108329/node_modules/@napi-rs/canvas-darwin-arm64/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-darwin-arm64-npm-0.1.51-dbc0153384/node_modules/@napi-rs/canvas-darwin-arm64/",\
"packageDependencies": [\
["@napi-rs/canvas-darwin-arm64", "npm:0.1.50"]\
["@napi-rs/canvas-darwin-arm64", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-darwin-x64", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-darwin-x64-npm-0.1.50-b670722e63/node_modules/@napi-rs/canvas-darwin-x64/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-darwin-x64-npm-0.1.51-58ab818cac/node_modules/@napi-rs/canvas-darwin-x64/",\
"packageDependencies": [\
["@napi-rs/canvas-darwin-x64", "npm:0.1.50"]\
["@napi-rs/canvas-darwin-x64", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-linux-arm-gnueabihf", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm-gnueabihf-npm-0.1.50-74ef8d8007/node_modules/@napi-rs/canvas-linux-arm-gnueabihf/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm-gnueabihf-npm-0.1.51-61ee4ee217/node_modules/@napi-rs/canvas-linux-arm-gnueabihf/",\
"packageDependencies": [\
["@napi-rs/canvas-linux-arm-gnueabihf", "npm:0.1.50"]\
["@napi-rs/canvas-linux-arm-gnueabihf", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-linux-arm64-gnu", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm64-gnu-npm-0.1.50-c8c1e133bc/node_modules/@napi-rs/canvas-linux-arm64-gnu/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm64-gnu-npm-0.1.51-f1ee66dd14/node_modules/@napi-rs/canvas-linux-arm64-gnu/",\
"packageDependencies": [\
["@napi-rs/canvas-linux-arm64-gnu", "npm:0.1.50"]\
["@napi-rs/canvas-linux-arm64-gnu", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-linux-arm64-musl", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm64-musl-npm-0.1.50-c675999c51/node_modules/@napi-rs/canvas-linux-arm64-musl/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-arm64-musl-npm-0.1.51-944cfbf386/node_modules/@napi-rs/canvas-linux-arm64-musl/",\
"packageDependencies": [\
["@napi-rs/canvas-linux-arm64-musl", "npm:0.1.50"]\
["@napi-rs/canvas-linux-arm64-musl", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-linux-x64-gnu", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-x64-gnu-npm-0.1.50-a8ca0545bd/node_modules/@napi-rs/canvas-linux-x64-gnu/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-x64-gnu-npm-0.1.51-057f6a7370/node_modules/@napi-rs/canvas-linux-x64-gnu/",\
"packageDependencies": [\
["@napi-rs/canvas-linux-x64-gnu", "npm:0.1.50"]\
["@napi-rs/canvas-linux-x64-gnu", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-linux-x64-musl", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-x64-musl-npm-0.1.50-65f7471d30/node_modules/@napi-rs/canvas-linux-x64-musl/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-linux-x64-musl-npm-0.1.51-c96e16ae54/node_modules/@napi-rs/canvas-linux-x64-musl/",\
"packageDependencies": [\
["@napi-rs/canvas-linux-x64-musl", "npm:0.1.50"]\
["@napi-rs/canvas-linux-x64-musl", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@napi-rs/canvas-win32-x64-msvc", [\
["npm:0.1.50", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-win32-x64-msvc-npm-0.1.50-52fd2a856e/node_modules/@napi-rs/canvas-win32-x64-msvc/",\
["npm:0.1.51", {\
"packageLocation": "./.yarn/unplugged/@napi-rs-canvas-win32-x64-msvc-npm-0.1.51-de823ce2f1/node_modules/@napi-rs/canvas-win32-x64-msvc/",\
"packageDependencies": [\
["@napi-rs/canvas-win32-x64-msvc", "npm:0.1.50"]\
["@napi-rs/canvas-win32-x64-msvc", "npm:0.1.51"]\
],\
"linkType": "HARD"\
}]\
]],\
["@nodelib/fs.scandir", [\
["npm:2.1.5", {\
"packageLocation": "./.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-6ab2a9b8a1.zip/node_modules/@nodelib/fs.scandir/",\
"packageDependencies": [\
["@nodelib/fs.scandir", "npm:2.1.5"],\
["@nodelib/fs.stat", "npm:2.0.5"],\
["run-parallel", "npm:1.2.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@nodelib/fs.stat", [\
["npm:2.0.5", {\
"packageLocation": "./.yarn/cache/@nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip/node_modules/@nodelib/fs.stat/",\
"packageDependencies": [\
["@nodelib/fs.stat", "npm:2.0.5"]\
],\
"linkType": "HARD"\
}]\
]],\
["@nodelib/fs.walk", [\
["npm:1.2.8", {\
"packageLocation": "./.yarn/cache/@nodelib-fs.walk-npm-1.2.8-b4a89da548-40033e33e9.zip/node_modules/@nodelib/fs.walk/",\
"packageDependencies": [\
["@nodelib/fs.walk", "npm:1.2.8"],\
["@nodelib/fs.scandir", "npm:2.1.5"],\
["fastq", "npm:1.17.1"]\
],\
"linkType": "HARD"\
}]\
@ -608,35 +639,85 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["@sequelize/core", [\
["npm:7.0.0-alpha.37", {\
"packageLocation": "./.yarn/cache/@sequelize-core-npm-7.0.0-alpha.37-1b326b1eb8-dcaadb079b.zip/node_modules/@sequelize/core/",\
"packageDependencies": [\
["@sequelize/core", "npm:7.0.0-alpha.37"]\
],\
"linkType": "SOFT"\
}],\
["virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:7.0.0-alpha.37", {\
"packageLocation": "./.yarn/__virtual__/@sequelize-core-virtual-e750a028ee/0/cache/@sequelize-core-npm-7.0.0-alpha.37-1b326b1eb8-dcaadb079b.zip/node_modules/@sequelize/core/",\
"packageDependencies": [\
["@sequelize/core", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:7.0.0-alpha.37"],\
["@types/debug", "npm:4.1.12"],\
["@types/ibm_db", null],\
["@types/mariadb", null],\
["@types/mysql2", null],\
["@types/odbc", null],\
["@types/pg", "npm:8.11.2"],\
["@types/snowflake-sdk", null],\
["@types/sqlite3", null],\
["@types/tedious", null],\
["@types/validator", "npm:13.11.9"],\
["bnf-parser", "npm:3.1.6"],\
["dayjs", "npm:1.11.10"],\
["debug", "virtual:8dde907e274d6cda4b3be6cd808e5a16421eab0e2ce2f6110b97323dbadda969b2dab36e690fd106d5bd3c87e0525cade2b2ba6fb4fb0c0e439212e4cf5c851b#npm:4.3.4"],\
["dottie", "npm:2.0.6"],\
["fast-glob", "npm:3.3.2"],\
["ibm_db", null],\
["inflection", "npm:3.0.0"],\
["lodash", "npm:4.17.21"],\
["mariadb", null],\
["mysql2", null],\
["odbc", null],\
["pg", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:8.11.3"],\
["pg-connection-string", "npm:2.6.2"],\
["pg-hstore", "npm:2.3.4"],\
["retry-as-promised", "npm:7.0.4"],\
["semver", "npm:7.6.0"],\
["sequelize-pool", "npm:8.0.0"],\
["snowflake-sdk", null],\
["sqlite3", null],\
["tedious", null],\
["toposort-class", "npm:1.0.1"],\
["type-fest", "npm:3.13.1"],\
["uuid", "npm:9.0.1"],\
["validator", "npm:13.11.0"],\
["wkx", "npm:0.5.0"]\
],\
"packagePeers": [\
"@types/ibm_db",\
"@types/mariadb",\
"@types/mysql2",\
"@types/odbc",\
"@types/pg",\
"@types/snowflake-sdk",\
"@types/sqlite3",\
"@types/tedious",\
"ibm_db",\
"mariadb",\
"mysql2",\
"odbc",\
"pg",\
"snowflake-sdk",\
"sqlite3",\
"tedious"\
],\
"linkType": "HARD"\
}]\
]],\
["@toast/tokenservice-client", [\
["npm:1.0.14::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.14%2Ftokenservice-client-1.0.14.tgz", {\
"packageLocation": "./.yarn/cache/@toast-tokenservice-client-npm-1.0.14-8e8e9cba19-b478e70965.zip/node_modules/@toast/tokenservice-client/",\
["npm:1.0.16::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.16%2Ftokenservice-client-1.0.16.tgz", {\
"packageLocation": "./.yarn/cache/@toast-tokenservice-client-npm-1.0.16-de708ec9ce-a946df28f2.zip/node_modules/@toast/tokenservice-client/",\
"packageDependencies": [\
["@toast/tokenservice-client", "npm:1.0.14::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.14%2Ftokenservice-client-1.0.14.tgz"],\
["@toast/tokenservice-client", "npm:1.0.16::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.16%2Ftokenservice-client-1.0.16.tgz"],\
["undici", "npm:6.7.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/bluebird", [\
["npm:3.5.42", {\
"packageLocation": "./.yarn/cache/@types-bluebird-npm-3.5.42-15f353048c-09ad60b083.zip/node_modules/@types/bluebird/",\
"packageDependencies": [\
["@types/bluebird", "npm:3.5.42"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/continuation-local-storage", [\
["npm:3.2.7", {\
"packageLocation": "./.yarn/cache/@types-continuation-local-storage-npm-3.2.7-763e4dc12b-1f272b53bc.zip/node_modules/@types/continuation-local-storage/",\
"packageDependencies": [\
["@types/continuation-local-storage", "npm:3.2.7"],\
["@types/node", "npm:20.11.24"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/debug", [\
["npm:4.1.12", {\
"packageLocation": "./.yarn/cache/@types-debug-npm-4.1.12-82a3fc4905-47876a852d.zip/node_modules/@types/debug/",\
@ -647,15 +728,6 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["@types/lodash", [\
["npm:4.14.202", {\
"packageLocation": "./.yarn/cache/@types-lodash-npm-4.14.202-76de3e302b-1bb9760a5b.zip/node_modules/@types/lodash/",\
"packageDependencies": [\
["@types/lodash", "npm:4.14.202"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/ms", [\
["npm:0.7.34", {\
"packageLocation": "./.yarn/cache/@types-ms-npm-0.7.34-46f5141bfd-f38d36e7b6.zip/node_modules/@types/ms/",\
@ -666,10 +738,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["@types/node", [\
["npm:20.11.24", {\
"packageLocation": "./.yarn/cache/@types-node-npm-20.11.24-4e19eedf98-7f34bfae5f.zip/node_modules/@types/node/",\
["npm:20.11.25", {\
"packageLocation": "./.yarn/cache/@types-node-npm-20.11.25-b6ac39dd46-861265f1bb.zip/node_modules/@types/node/",\
"packageDependencies": [\
["@types/node", "npm:20.11.24"],\
["@types/node", "npm:20.11.25"],\
["undici-types", "npm:5.26.5"]\
],\
"linkType": "HARD"\
@ -689,26 +761,13 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-pg-npm-8.11.2-bdf321bea4-7c05cf63be.zip/node_modules/@types/pg/",\
"packageDependencies": [\
["@types/pg", "npm:8.11.2"],\
["@types/node", "npm:20.11.24"],\
["@types/node", "npm:20.11.25"],\
["pg-protocol", "npm:1.6.0"],\
["pg-types", "npm:4.0.2"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/sequelize", [\
["npm:4.28.20", {\
"packageLocation": "./.yarn/cache/@types-sequelize-npm-4.28.20-a712a5ea90-8b3faec2e6.zip/node_modules/@types/sequelize/",\
"packageDependencies": [\
["@types/sequelize", "npm:4.28.20"],\
["@types/bluebird", "npm:3.5.42"],\
["@types/continuation-local-storage", "npm:3.2.7"],\
["@types/lodash", "npm:4.14.202"],\
["@types/validator", "npm:13.11.9"]\
],\
"linkType": "HARD"\
}]\
]],\
["@types/validator", [\
["npm:13.11.9", {\
"packageLocation": "./.yarn/cache/@types-validator-npm-13.11.9-ac3f0e748e-2d397c6929.zip/node_modules/@types/validator/",\
@ -723,7 +782,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-ws-npm-8.5.10-a877a38f71-9b414dc5e0.zip/node_modules/@types/ws/",\
"packageDependencies": [\
["@types/ws", "npm:8.5.10"],\
["@types/node", "npm:20.11.24"]\
["@types/node", "npm:20.11.25"]\
],\
"linkType": "HARD"\
}],\
@ -731,7 +790,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/@types-ws-npm-8.5.9-91d1b2ab07-7cf66383b8.zip/node_modules/@types/ws/",\
"packageDependencies": [\
["@types/ws", "npm:8.5.9"],\
["@types/node", "npm:20.11.24"]\
["@types/node", "npm:20.11.25"]\
],\
"linkType": "HARD"\
}]\
@ -763,6 +822,25 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["bnf-parser", [\
["npm:3.1.6", {\
"packageLocation": "./.yarn/cache/bnf-parser-npm-3.1.6-40bea7c0c7-caaf7078e2.zip/node_modules/bnf-parser/",\
"packageDependencies": [\
["bnf-parser", "npm:3.1.6"]\
],\
"linkType": "HARD"\
}]\
]],\
["braces", [\
["npm:3.0.2", {\
"packageLocation": "./.yarn/cache/braces-npm-3.0.2-782240b28a-966b1fb48d.zip/node_modules/braces/",\
"packageDependencies": [\
["braces", "npm:3.0.2"],\
["fill-range", "npm:7.0.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["buffer-writer", [\
["npm:2.0.0", {\
"packageLocation": "./.yarn/cache/buffer-writer-npm-2.0.0-5cd2ef55bc-fdca8e28c5.zip/node_modules/buffer-writer/",\
@ -795,14 +873,14 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./",\
"packageDependencies": [\
["daggerbot-ts", "workspace:."],\
["@napi-rs/canvas", "npm:0.1.50"],\
["@napi-rs/canvas", "npm:0.1.51"],\
["@octokit/rest", "npm:20.0.2"],\
["@toast/tokenservice-client", "npm:1.0.14::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.14%2Ftokenservice-client-1.0.14.tgz"],\
["@sequelize/core", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:7.0.0-alpha.37"],\
["@toast/tokenservice-client", "npm:1.0.16::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.16%2Ftokenservice-client-1.0.16.tgz"],\
["@types/ms", "npm:0.7.34"],\
["@types/node", "npm:20.11.24"],\
["@types/node", "npm:20.11.25"],\
["@types/node-cron", "npm:3.0.11"],\
["@types/pg", "npm:8.11.2"],\
["@types/sequelize", "npm:4.28.20"],\
["ansi-colors", "npm:4.1.3"],\
["dayjs", "npm:1.11.10"],\
["discord.js", "npm:14.14.1"],\
@ -812,12 +890,12 @@ const RAW_RUNTIME_STATE =
["node-cron", "npm:3.0.3"],\
["pg", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:8.11.3"],\
["pg-hstore", "npm:2.3.4"],\
["postgres-array", "npm:3.0.2"],\
["redis", "npm:4.6.13"],\
["sequelize", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.37.1"],\
["simple-git", "npm:3.22.0"],\
["systeminformation", "npm:5.22.0"],\
["typescript", "patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"],\
["undici", "npm:6.7.0"]\
["typescript", "patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c"],\
["undici", "npm:6.7.1"]\
],\
"linkType": "SOFT"\
}]\
@ -931,6 +1009,20 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["fast-glob", [\
["npm:3.3.2", {\
"packageLocation": "./.yarn/cache/fast-glob-npm-3.3.2-0a8cb4f2ca-222512e931.zip/node_modules/fast-glob/",\
"packageDependencies": [\
["fast-glob", "npm:3.3.2"],\
["@nodelib/fs.stat", "npm:2.0.5"],\
["@nodelib/fs.walk", "npm:1.2.8"],\
["glob-parent", "npm:5.1.2"],\
["merge2", "npm:1.4.1"],\
["micromatch", "npm:4.0.5"]\
],\
"linkType": "HARD"\
}]\
]],\
["fast-xml-parser", [\
["npm:4.3.5", {\
"packageLocation": "./.yarn/cache/fast-xml-parser-npm-4.3.5-3cd12e5b84-ccfd943e4e.zip/node_modules/fast-xml-parser/",\
@ -941,6 +1033,26 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["fastq", [\
["npm:1.17.1", {\
"packageLocation": "./.yarn/cache/fastq-npm-1.17.1-56d4554993-a443180068.zip/node_modules/fastq/",\
"packageDependencies": [\
["fastq", "npm:1.17.1"],\
["reusify", "npm:1.0.4"]\
],\
"linkType": "HARD"\
}]\
]],\
["fill-range", [\
["npm:7.0.1", {\
"packageLocation": "./.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-e260f7592f.zip/node_modules/fill-range/",\
"packageDependencies": [\
["fill-range", "npm:7.0.1"],\
["to-regex-range", "npm:5.0.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["fraction.js", [\
["npm:4.3.4", {\
"packageLocation": "./.yarn/cache/fraction.js-npm-4.3.4-ce148a1f45-3a1e6b2680.zip/node_modules/fraction.js/",\
@ -959,11 +1071,49 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["inflection", [\
["npm:1.13.4", {\
"packageLocation": "./.yarn/cache/inflection-npm-1.13.4-102169ecb5-a0cc1b105c.zip/node_modules/inflection/",\
["glob-parent", [\
["npm:5.1.2", {\
"packageLocation": "./.yarn/cache/glob-parent-npm-5.1.2-021ab32634-32cd106ce8.zip/node_modules/glob-parent/",\
"packageDependencies": [\
["inflection", "npm:1.13.4"]\
["glob-parent", "npm:5.1.2"],\
["is-glob", "npm:4.0.3"]\
],\
"linkType": "HARD"\
}]\
]],\
["inflection", [\
["npm:3.0.0", {\
"packageLocation": "./.yarn/cache/inflection-npm-3.0.0-1581c4d576-e8aae6abb8.zip/node_modules/inflection/",\
"packageDependencies": [\
["inflection", "npm:3.0.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["is-extglob", [\
["npm:2.1.1", {\
"packageLocation": "./.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip/node_modules/is-extglob/",\
"packageDependencies": [\
["is-extglob", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["is-glob", [\
["npm:4.0.3", {\
"packageLocation": "./.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-3ed74f2b0c.zip/node_modules/is-glob/",\
"packageDependencies": [\
["is-glob", "npm:4.0.3"],\
["is-extglob", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["is-number", [\
["npm:7.0.0", {\
"packageLocation": "./.yarn/cache/is-number-npm-7.0.0-060086935c-6a6c3383f6.zip/node_modules/is-number/",\
"packageDependencies": [\
["is-number", "npm:7.0.0"]\
],\
"linkType": "HARD"\
}]\
@ -1032,21 +1182,22 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["moment", [\
["npm:2.30.1", {\
"packageLocation": "./.yarn/cache/moment-npm-2.30.1-1c51a5c631-ae42d876d4.zip/node_modules/moment/",\
["merge2", [\
["npm:1.4.1", {\
"packageLocation": "./.yarn/cache/merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip/node_modules/merge2/",\
"packageDependencies": [\
["moment", "npm:2.30.1"]\
["merge2", "npm:1.4.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["moment-timezone", [\
["npm:0.5.45", {\
"packageLocation": "./.yarn/cache/moment-timezone-npm-0.5.45-2df3ad72a4-45e3793d44.zip/node_modules/moment-timezone/",\
["micromatch", [\
["npm:4.0.5", {\
"packageLocation": "./.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-a749888789.zip/node_modules/micromatch/",\
"packageDependencies": [\
["moment-timezone", "npm:0.5.45"],\
["moment", "npm:2.30.1"]\
["micromatch", "npm:4.0.5"],\
["braces", "npm:3.0.2"],\
["picomatch", "npm:2.3.1"]\
],\
"linkType": "HARD"\
}]\
@ -1250,6 +1401,15 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["picomatch", [\
["npm:2.3.1", {\
"packageLocation": "./.yarn/cache/picomatch-npm-2.3.1-c782cfd986-60c2595003.zip/node_modules/picomatch/",\
"packageDependencies": [\
["picomatch", "npm:2.3.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["postgres-array", [\
["npm:2.0.0", {\
"packageLocation": "./.yarn/cache/postgres-array-npm-2.0.0-4f49dc1389-aff99e7971.zip/node_modules/postgres-array/",\
@ -1325,6 +1485,15 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["queue-microtask", [\
["npm:1.2.3", {\
"packageLocation": "./.yarn/cache/queue-microtask-npm-1.2.3-fcc98e4e2d-72900df061.zip/node_modules/queue-microtask/",\
"packageDependencies": [\
["queue-microtask", "npm:1.2.3"]\
],\
"linkType": "HARD"\
}]\
]],\
["redis", [\
["npm:4.6.13", {\
"packageLocation": "./.yarn/cache/redis-npm-4.6.13-68c7e2be72-cc66182b8f.zip/node_modules/redis/",\
@ -1358,6 +1527,25 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["reusify", [\
["npm:1.0.4", {\
"packageLocation": "./.yarn/cache/reusify-npm-1.0.4-95ac4aec11-14222c9e1d.zip/node_modules/reusify/",\
"packageDependencies": [\
["reusify", "npm:1.0.4"]\
],\
"linkType": "HARD"\
}]\
]],\
["run-parallel", [\
["npm:1.2.0", {\
"packageLocation": "./.yarn/cache/run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip/node_modules/run-parallel/",\
"packageDependencies": [\
["run-parallel", "npm:1.2.0"],\
["queue-microtask", "npm:1.2.3"]\
],\
"linkType": "HARD"\
}]\
]],\
["seedrandom", [\
["npm:3.0.5", {\
"packageLocation": "./.yarn/cache/seedrandom-npm-3.0.5-6946e8f8db-acad5e516c.zip/node_modules/seedrandom/",\
@ -1377,81 +1565,11 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["sequelize", [\
["npm:6.37.1", {\
"packageLocation": "./.yarn/cache/sequelize-npm-6.37.1-894f242817-05be9a1e67.zip/node_modules/sequelize/",\
"packageDependencies": [\
["sequelize", "npm:6.37.1"]\
],\
"linkType": "SOFT"\
}],\
["virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.37.1", {\
"packageLocation": "./.yarn/__virtual__/sequelize-virtual-cdd2f8787e/0/cache/sequelize-npm-6.37.1-894f242817-05be9a1e67.zip/node_modules/sequelize/",\
"packageDependencies": [\
["sequelize", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.37.1"],\
["@types/debug", "npm:4.1.12"],\
["@types/ibm_db", null],\
["@types/mariadb", null],\
["@types/mysql2", null],\
["@types/oracledb", null],\
["@types/pg", "npm:8.11.2"],\
["@types/pg-hstore", null],\
["@types/snowflake-sdk", null],\
["@types/sqlite3", null],\
["@types/tedious", null],\
["@types/validator", "npm:13.11.9"],\
["debug", "virtual:8dde907e274d6cda4b3be6cd808e5a16421eab0e2ce2f6110b97323dbadda969b2dab36e690fd106d5bd3c87e0525cade2b2ba6fb4fb0c0e439212e4cf5c851b#npm:4.3.4"],\
["dottie", "npm:2.0.6"],\
["ibm_db", null],\
["inflection", "npm:1.13.4"],\
["lodash", "npm:4.17.21"],\
["mariadb", null],\
["moment", "npm:2.30.1"],\
["moment-timezone", "npm:0.5.45"],\
["mysql2", null],\
["oracledb", null],\
["pg", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:8.11.3"],\
["pg-connection-string", "npm:2.6.2"],\
["pg-hstore", "npm:2.3.4"],\
["retry-as-promised", "npm:7.0.4"],\
["semver", "npm:7.6.0"],\
["sequelize-pool", "npm:7.1.0"],\
["snowflake-sdk", null],\
["sqlite3", null],\
["tedious", null],\
["toposort-class", "npm:1.0.1"],\
["uuid", "npm:8.3.2"],\
["validator", "npm:13.11.0"],\
["wkx", "npm:0.5.0"]\
],\
"packagePeers": [\
"@types/ibm_db",\
"@types/mariadb",\
"@types/mysql2",\
"@types/oracledb",\
"@types/pg-hstore",\
"@types/pg",\
"@types/snowflake-sdk",\
"@types/sqlite3",\
"@types/tedious",\
"ibm_db",\
"mariadb",\
"mysql2",\
"oracledb",\
"pg-hstore",\
"pg",\
"snowflake-sdk",\
"sqlite3",\
"tedious"\
],\
"linkType": "HARD"\
}]\
]],\
["sequelize-pool", [\
["npm:7.1.0", {\
"packageLocation": "./.yarn/cache/sequelize-pool-npm-7.1.0-670df81ecb-eeb0837451.zip/node_modules/sequelize-pool/",\
["npm:8.0.0", {\
"packageLocation": "./.yarn/cache/sequelize-pool-npm-8.0.0-e96de3b702-c449ec2f34.zip/node_modules/sequelize-pool/",\
"packageDependencies": [\
["sequelize-pool", "npm:7.1.0"]\
["sequelize-pool", "npm:8.0.0"]\
],\
"linkType": "HARD"\
}]\
@ -1504,6 +1622,16 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["to-regex-range", [\
["npm:5.0.1", {\
"packageLocation": "./.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-10dda13571.zip/node_modules/to-regex-range/",\
"packageDependencies": [\
["to-regex-range", "npm:5.0.1"],\
["is-number", "npm:7.0.0"]\
],\
"linkType": "HARD"\
}]\
]],\
["toposort-class", [\
["npm:1.0.1", {\
"packageLocation": "./.yarn/cache/toposort-class-npm-1.0.1-aefabde69e-166cb89ecb.zip/node_modules/toposort-class/",\
@ -1531,6 +1659,15 @@ const RAW_RUNTIME_STATE =
"linkType": "HARD"\
}]\
]],\
["type-fest", [\
["npm:3.13.1", {\
"packageLocation": "./.yarn/cache/type-fest-npm-3.13.1-4bd562882d-9a8a2359ad.zip/node_modules/type-fest/",\
"packageDependencies": [\
["type-fest", "npm:3.13.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["typed-function", [\
["npm:4.1.1", {\
"packageLocation": "./.yarn/cache/typed-function-npm-4.1.1-d09696d7f2-0ef538d5f0.zip/node_modules/typed-function/",\
@ -1541,10 +1678,10 @@ const RAW_RUNTIME_STATE =
}]\
]],\
["typescript", [\
["patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7", {\
"packageLocation": "./.yarn/cache/typescript-patch-4778c7998b-c93786fcc9.zip/node_modules/typescript/",\
["patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c", {\
"packageLocation": "./.yarn/cache/typescript-patch-c145cea93e-f5f9a4133c.zip/node_modules/typescript/",\
"packageDependencies": [\
["typescript", "patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"]\
["typescript", "patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c"]\
],\
"linkType": "HARD"\
}]\
@ -1574,6 +1711,13 @@ const RAW_RUNTIME_STATE =
["@fastify/busboy", "npm:2.1.1"]\
],\
"linkType": "HARD"\
}],\
["npm:6.7.1", {\
"packageLocation": "./.yarn/cache/undici-npm-6.7.1-cc741edc29-7e66eb7fb6.zip/node_modules/undici/",\
"packageDependencies": [\
["undici", "npm:6.7.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["undici-types", [\
@ -1601,6 +1745,13 @@ const RAW_RUNTIME_STATE =
["uuid", "npm:8.3.2"]\
],\
"linkType": "HARD"\
}],\
["npm:9.0.1", {\
"packageLocation": "./.yarn/cache/uuid-npm-9.0.1-39a8442bc6-9d0b6adb72.zip/node_modules/uuid/",\
"packageDependencies": [\
["uuid", "npm:9.0.1"]\
],\
"linkType": "HARD"\
}]\
]],\
["validator", [\
@ -1617,7 +1768,7 @@ const RAW_RUNTIME_STATE =
"packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-b8975e33f9.zip/node_modules/wkx/",\
"packageDependencies": [\
["wkx", "npm:0.5.0"],\
["@types/node", "npm:20.11.24"]\
["@types/node", "npm:20.11.25"]\
],\
"linkType": "HARD"\
}]\

View File

@ -1,5 +1,5 @@
FROM node:21.1.0-bookworm-slim
ENV YARN_VERSION 4.1.0
ENV YARN_VERSION 4.1.1
ENV TZ Australia/Sydney
RUN yarn policies set-version $YARN_VERSION
RUN apt update -y && apt upgrade -y && apt install -y git fontconfig && npm install -g typescript

View File

@ -25,11 +25,12 @@
"npm": "yarn is required, dont use npm"
},
"engineStrict": true,
"packageManager": "yarn@4.1.0+sha256.81a00df816059803e6b5148acf03ce313cad36b7f6e5af6efa040a15981a6ffb",
"packageManager": "yarn@4.1.1+sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781",
"dependencies": {
"@napi-rs/canvas": "0.1.50",
"@napi-rs/canvas": "0.1.51",
"@octokit/rest": "20.0.2",
"@toast/tokenservice-client": "1.0.14",
"@sequelize/core": "7.0.0-alpha.37",
"@toast/tokenservice-client": "1.0.16",
"ansi-colors": "4.1.3",
"dayjs": "1.11.10",
"discord.js": "14.14.1",
@ -39,18 +40,17 @@
"node-cron": "3.0.3",
"pg": "8.11.3",
"pg-hstore": "2.3.4",
"postgres-array": "3.0.2",
"redis": "4.6.13",
"sequelize": "6.37.1",
"simple-git": "3.22.0",
"systeminformation": "5.22.0",
"undici": "6.7.0"
"undici": "6.7.1"
},
"devDependencies": {
"@types/ms": "0.7.34",
"@types/node": "20.11.24",
"@types/node": "20.11.25",
"@types/node-cron": "3.0.11",
"@types/pg": "8.11.2",
"@types/sequelize": "4.28.20",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}

View File

@ -4,7 +4,7 @@ import Formatters from '../helpers/Formatters.js';
import MessageTool from '../helpers/MessageTool.js';
export default class Case {
private static async updateEntry(client:TClient, caseId:number, reason:string) {
const logsArray = [client.config.dcServer.channels.logs, client.config.dcServer.channels.bankick_log];
const logsArray = [client.config.dcServer.channels.bot_log, client.config.dcServer.channels.bankick_log];
for (const channelID of logsArray) {
const channel = await client.channels.fetch(channelID) as Discord.TextChannel;
if (channel && channel.type === Discord.ChannelType.GuildText) {
@ -25,16 +25,16 @@ export default class Case {
update: async()=>{
const reason = interaction.options.getString('reason');
await client.punishments.updateReason(caseId, reason);
if (client.punishments.findCase(caseId)) {
if (client.punishments.findCaseOrCancels('case_id', caseId)) {
await this.updateEntry(client, caseId, reason);
await interaction.reply({embeds: [new client.embed().setColor(client.config.embedColorGreen).setTitle('Case updated').setDescription(`Case #${caseId} has been successfully updated with new reason:\n\`${reason}\``)]});
} else interaction.reply({embeds: [new client.embed().setColor(client.config.embedColorRed).setTitle('Case not updated').setDescription(`Case #${caseId} is not found in database, not updating the reason.`)]});
},
view: async()=>{
const punishment = await client.punishments.findCase(caseId);
const punishment = await client.punishments.findCaseOrCancels('case_id', caseId);
if (!punishment) return interaction.reply('Case ID is not found in database.');
const cancelledBy = punishment.dataValues.expired ? await client.punishments.findByCancels(punishment.dataValues.case_id) : null;
const cancels = punishment.dataValues.cancels ? await client.punishments.findCase(punishment.dataValues.cancels) : null;
const cancelledBy = punishment.dataValues.expired ? await client.punishments.findCaseOrCancels('cancels', punishment.dataValues.case_id) : null;
const cancels = punishment.dataValues.cancels ? await client.punishments.findCaseOrCancels('case_id', punishment.dataValues.cancels) : null;
const embed = new client.embed().setColor(client.config.embedColor).setTimestamp(Number(punishment.dataValues.time)).setTitle(`${punishment.dataValues.type[0].toUpperCase()+punishment.dataValues.type.slice(1)} | Case #${punishment.dataValues.case_id}`).addFields(
{name: 'User', value: `${punishment.member_name}\n${MessageTool.formatMention(punishment.dataValues.member, 'user')}\n\`${punishment.dataValues.member}\``, inline: true},
{name: 'Moderator', value: `${client.users.resolve(punishment.moderator).tag}\n${MessageTool.formatMention(punishment.dataValues.moderator, 'user')}\n\`${punishment.dataValues.moderator}\``, inline: true},

View File

@ -128,7 +128,7 @@ export default class Developer {
const member = interaction.options.getMember('member');
const message = interaction.options.getString('message');
const int = await interaction.reply({content: '*Sending...*', fetchReply: true});
client.users.cache.get(member.id).send(`${message}\n╰ ${interaction.member.displayName}`).then(()=>int.edit(`Successfully sent a DM to **${member.user.username}** with the following message:\n\`\`\`${message}\`\`\``)).catch((e:Error)=>int.edit(`\`${e.message}\``))
client.users.cache.get(member.id).send(`${message}\n╰ *Pseudonymous User*`).then(()=>int.edit(`Successfully sent a DM to **${member.user.username}** with the following message:\n\`\`\`${message}\`\`\``)).catch((e:Error)=>int.edit(`\`${e.message}\``))
},
modify_rank_msgs: async()=>{
if (interaction.guildId !== client.config.dcServer.id) return interaction.reply({content: 'This command is only available in the main server.', ephemeral: true});

View File

@ -61,7 +61,7 @@ export default class Rank {
const member = interaction.options.getMember('member');
const duration = ms(interaction.options.getString('duration'));
const reason = interaction.options.getString('reason');
const botlog = interaction.guild.channels.cache.get(client.config.dcServer.channels.logs) as Discord.TextChannel;
const botlog = interaction.guild.channels.cache.get(client.config.dcServer.channels.bot_log) as Discord.TextChannel;
if (await client.userLevels.blockUser(member.id, Date.now() + duration)) {
await interaction.reply(`Done, DM has been sent to **${member.displayName}** with the reason.`);

View File

@ -5,7 +5,7 @@ import MessageTool from '../helpers/MessageTool.js';
export default class Unpunish {
static async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
if (!MessageTool.isModerator(interaction.member as Discord.GuildMember)) return MessageTool.youNeedRole(interaction, 'dcmod');
const punishment = await client.punishments.findCase(interaction.options.getInteger('case_id', true));
const punishment = await client.punishments.findCaseOrCancels('case_id', interaction.options.getInteger('case_id', true));
if (!punishment) return interaction.reply({content: 'Case ID is not found in database.', ephemeral: true});
if (['unban', 'unmute', 'punishmentOverride'].includes(punishment.dataValues.type)) return interaction.reply({content: 'This case ID is immutable. (Informative case)', ephemeral: true});
if (punishment.dataValues.expired) return interaction.reply({content: 'This case ID is already expired.', ephemeral: true});

View File

@ -1,4 +1,4 @@
import {Sequelize} from 'sequelize';
import {Sequelize} from '@sequelize/core';
import Logger from '../helpers/Logger.js';
import TSClient from '../helpers/TSClient.js';

View File

@ -76,7 +76,7 @@
"thismeanswar": "1091300529696673792",
"bot_suggestions": "1040018521746325586",
"bot_status": "1009753780188884992",
"logs": "548032776830582794",
"bot_log": "548032776830582794",
"welcome": "621134751897616406",
"botcommands": "468888722210029588",
"bankick_log": "1048341961901363352",
@ -85,7 +85,8 @@
"mpmod_chat": "516344221452599306",
"multifarm_chat": "1149238561934151690",
"pw_list": "1193424588554645505",
"help_forum": "1022236553562558464"
"help_forum": "1022236553562558464",
"server_log": "1040002995783471265"
}
}
}

View File

@ -0,0 +1,28 @@
import Discord from 'discord.js';
import TClient from '../client.js';
export default class ChannelUpdate {
static async run(_client:TClient, _oldChannel:Discord.GuildChannel, _newChannel:Discord.GuildChannel) {
/* if (!client.config.botSwitches.logs) return;
if (oldChannel.guild?.id != client.config.dcServer.id) return;
const auditChupdate = (await newChannel.guild.fetchAuditLogs({limit: 1, type: Discord.AuditLogEvent.ChannelUpdate})).entries.first();
if (!auditChupdate) return console.log(`Channel (${oldChannel.name}) was updated but no audit log found for this channel.`);
const serverLog = client.channels.cache.get(client.config.dcServer.channels.server_log) as Discord.TextChannel;
const embed = new client.embed().setColor(client.config.embedColor).setFooter({text: auditChupdate.executor.displayName, iconURL: auditChupdate.executor.displayAvatarURL({size: 2048})}).setTimestamp();
if (auditChupdate.changes.length > 0) {
const changes = auditChupdate.changes;
const formatAudit =(auditValue:Discord.AuditLogChange)=>`${auditValue.old ??= 'None'}${auditValue.new ??= 'None'}`;
embed.setTitle(`\`${oldChannel.name}\` was updated`).setTimestamp(auditChupdate.createdTimestamp);
for (const change of changes) {
if (change.key === 'name') embed.addFields({name: 'Name', value: formatAudit(change), inline: true});
if (change.key === 'topic') embed.addFields({name: 'Topic', value: formatAudit(change), inline: true});
}
await serverLog.send({embeds: [embed]});
} */
}
}
// Commented out, will be refactored later due to issues.

View File

@ -15,7 +15,7 @@ export default class GuildBanAdd {
{name: '🔹 Reason', value: reason === null ? 'Reason unspecified': reason}
);
if (!await client.userLevels.fetchUser(member.user.id)) embed.setFooter({text: 'Rank data has been wiped.'});
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [embed]});
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed]});
client.memberJoinDates.delete(member.user.id);
} else console.log(`User was banned from "${member.guild.name}" but no audit log could be fetched.`)
}

View File

@ -6,7 +6,7 @@ export default class GuildBanRemove {
const unbanLog = (await member.guild.fetchAuditLogs({limit: 1, type: Discord.AuditLogEvent.MemberBanRemove})).entries.first();
if (!unbanLog) return console.log(`User was unbanned from ${member.guild.name} but no audit log for this user.`)
const { executor, target, reason } = unbanLog;
if (target.id === member.user.id) (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
if (target.id === member.user.id) (client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [
new client.embed().setColor(client.config.embedColorGreen).setTimestamp().setThumbnail(member.user.displayAvatarURL({size: 2048})).setTitle(`Member Unbanned: ${target.username}`).setDescription(`🔹 **User**\n<@${target.id}>\n\`${target.id}\``).addFields(
{name: '🔹 Moderator', value: `<@${executor.id}>\n\`${executor.id}\``},
{name: '🔹 Reason', value: `${reason === null ? 'Reason unspecified.': reason}`}

View File

@ -22,7 +22,7 @@ export default class GuildMemberAdd {
const newInvites = await member.guild.invites.fetch();
const usedInvite = newInvites.find((inv:Discord.Invite)=>client.invites.get(inv.code)?.uses < inv.uses);
newInvites.forEach((inv:Discord.Invite)=>client.invites.set(inv.code,{uses: inv.uses, creator: inv.inviterId, channel: inv.channel.name}));
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [
new client.embed().setColor(client.config.embedColorGreen).setTimestamp().setThumbnail(member.user.displayAvatarURL({size: 2048})).setTitle(`${isBot} Joined: ${member.user.username}`).setFooter({text: `Total members: ${index}${suffix} | ID: ${member.user.id}`}).addFields(
{name: '🔹 Account Creation Date', value: `<t:${Math.round(member.user.createdTimestamp/1000)}>\n<t:${Math.round(member.user.createdTimestamp/1000)}:R>`},
{name: '🔹 Invite Data:', value: usedInvite ? `Invite: \`${usedInvite.code}\`\nCreated by: **${usedInvite.inviter?.username}**\nChannel: **#${usedInvite.channel.name}**` : 'No invite data could be fetched.'}

View File

@ -16,7 +16,7 @@ export default class GuildMemberRemove {
{name: `🔹 Roles: ${member.roles.cache.size - 1}`, value: `${member.roles.cache.size > 1 ? member.roles.cache.filter((x)=>x.id !== member.guild.roles.everyone.id).sort((a,b)=>b.position - a.position).map(x=>x).join(member.roles.cache.size > 4 ? ' ' : '\n').slice(0,1024) : 'No roles'}`, inline: true}
);
if (levelData && levelData.dataValues.messages > 1) embed.addFields({name: '🔹 Total messages', value: levelData.dataValues.messages.toLocaleString('en-US'), inline: true});
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [embed]});
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed]});
await client.userLevels.deleteUser(member.id);
}
}

View File

@ -4,7 +4,7 @@ export default class GuildMemberUpdate {
static run(client:TClient, oldMember:Discord.GuildMember, newMember:Discord.GuildMember){
if (oldMember.guild.id != client.config.dcServer.id) return;
if (!client.config.botSwitches.logs) return;
const channel = (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel);
const channel = (client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel);
if (oldMember.nickname != newMember.nickname){
const embed = new client.embed().setColor(client.config.embedColor).setTimestamp().setThumbnail(newMember.displayAvatarURL({size: 2048})).setTitle(`Nickname updated: ${newMember.user.username}`).setDescription(`<@${newMember.user.id}>\n\`${newMember.user.id}\``)
oldMember.nickname === null ? '' : embed.addFields({name: '🔹 Old nickname', value: `\`\`\`${oldMember.nickname}\`\`\``})

View File

@ -10,7 +10,12 @@ import MessageTool from '../helpers/MessageTool.js';
export default class MessageCreate {
static async run(client:TClient, message:Discord.Message) {
if (message.author.bot) return;
if (!message.inGuild()) return (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({content: `${this.randomEmotes[Math.floor(Math.random()*this.randomEmotes.length)]} ${MessageTool.formatMention(client.config.whitelist[0], 'user')}\n**${message.author.username}** (\`${message.author.id}\`) sent me a DM, their message is:\`\`\`${message.content}\`\`\``, allowedMentions: {parse: ['users']}});
if (!message.inGuild()) {
let fwdImages:string[] = [];
message.attachments.forEach(x=>fwdImages.push(x.url));
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({content: `${this.randomEmotes[Math.floor(Math.random()*this.randomEmotes.length)]} ${MessageTool.formatMention(client.config.whitelist[0], 'user')}\n**${message.author.username}** (\`${message.author.id}\`) sent me a DM, their message is:\`\`\`${message.content.length < 1 ? '(No content)' : message.content}\`\`\``, files: fwdImages, allowedMentions: {parse: ['users']}});
return;
}
let automodded: boolean;
if (client.config.botSwitches.automod && !message.member?.roles.cache.has(client.config.dcServer.roles.dcmod) && !message.member?.roles.cache.has(client.config.dcServer.roles.admin) && message.guildId === client.config.dcServer.id) {

View File

@ -15,6 +15,6 @@ export default class MessageDelete {
)
const attachments:string[] = [];
msg.attachments.forEach(x=>attachments.push(x.url));
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [embed], files: attachments})
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [embed], files: attachments})
}
}

View File

@ -8,7 +8,7 @@ export default class MessageDeleteBulk {
msg.content === undefined ?? null;
})) return;
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [
new client.embed().setColor(client.config.embedColorRed).setTimestamp()
.setTitle(`${messages.size} messages were purged`)
.setDescription(`\`\`\`${messages.map(msgs=>`${msgs.author?.username}: ${msgs.content}`).reverse().join('\n').slice(0,3900)}\`\`\``)

View File

@ -10,7 +10,7 @@ export default class MessageUpdate {
if (await client.prohibitedWords.findWord(Automoderator.scanMsg(newMsg)) && (!MessageTool.isStaff(newMsg.member))) newMsg.delete();
if (!rawSwitches.MESSAGE_UPDATE || rawSwitches.MESSAGE_UPDATE) {
rawSwitches.MESSAGE_UPDATE = true;
(client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new client.embed().setColor(client.config.embedColor).setTimestamp().setAuthor({name: `Author: ${oldMsg.author.username} (${oldMsg.author.id})`, iconURL: oldMsg.author.displayAvatarURL()}).setTitle('Message edited').addFields({name: 'Old content', value: `\`\`\`${oldMsg.content.length < 1 ? '(Attachment)' : Discord.escapeCodeBlock(oldMsg.content.slice(0,2048))}\`\`\``}, {name: 'New content', value: `\`\`\`${Discord.escapeCodeBlock(newMsg.content.slice(0,2048))}\`\`\``}, {name: 'Channel', value: `<#${oldMsg.channelId}>`})], components: [new Discord.ActionRowBuilder<Discord.ButtonBuilder>().addComponents(new Discord.ButtonBuilder().setStyle(5).setURL(oldMsg.url).setLabel('Jump to message'))]});
(client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [new client.embed().setColor(client.config.embedColor).setTimestamp().setAuthor({name: `Author: ${oldMsg.author.username} (${oldMsg.author.id})`, iconURL: oldMsg.author.displayAvatarURL()}).setTitle('Message edited').addFields({name: 'Old content', value: `\`\`\`${oldMsg.content.length < 1 ? '(Attachment)' : Discord.escapeCodeBlock(oldMsg.content.slice(0,2048))}\`\`\``}, {name: 'New content', value: `\`\`\`${Discord.escapeCodeBlock(newMsg.content.slice(0,2048))}\`\`\``}, {name: 'Channel', value: `<#${oldMsg.channelId}>`})], components: [new Discord.ActionRowBuilder<Discord.ButtonBuilder>().addComponents(new Discord.ButtonBuilder().setStyle(5).setURL(oldMsg.url).setLabel('Jump to message'))]});
}
}
}

View File

@ -6,7 +6,7 @@ export default class Ready {
const botSwitches = Object.entries(client.config.botSwitches).map(([k, v])=>`${ansi.yellow(k)}${ansi.black(':')} ${v}`).join('\n').replace(/true/g, ansi.green('true')).replace(/false/g, ansi.red('false'));
await client.guilds.fetch(client.config.dcServer.id).then(async guild=>{
const logsArray = [client.config.dcServer.channels.logs, client.config.dcServer.channels.bankick_log];
const logsArray = [client.config.dcServer.channels.bot_log, client.config.dcServer.channels.bankick_log];
for (const channelID of logsArray) {
const channel = await client.channels.fetch(channelID) as Discord.TextChannel;
if (channel && channel.type === Discord.ChannelType.GuildText) await channel.messages.fetch({limit: 15});

View File

@ -72,7 +72,7 @@ setInterval(async()=>{
// Send notification to #bot-log that the data has been pushed to database.
const commands = await client.guilds.cache.get(client.config.dcServer.id)?.commands.fetch();
if (commands) (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
if (commands) (client.channels.resolve(client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [
new client.embed().setDescription(`Pushed the following\ndata to </rank leaderboard:${commands.find(x=>x.name === 'rank').id}>`).setFields(
{name: 'Day', value: formattedDate.toString(), inline: true},
{name: 'Messages', value: Intl.NumberFormat('en-us').format(total).toString(), inline: true}

5
src/interfaces.d.ts vendored
View File

@ -151,7 +151,7 @@ export interface Config {
thismeanswar: string,
bot_suggestions: string,
bot_status: string,
logs: string,
bot_log: string,
welcome: string,
botcommands: string,
bankick_log: string,
@ -160,7 +160,8 @@ export interface Config {
mpmod_chat: string,
multifarm_chat: string,
pw_list: string,
help_forum: string
help_forum: string,
server_log: string
}
}
}

View File

@ -1,5 +1,5 @@
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
import CacheServer from '../components/CacheServer.js';
class MPServer extends Model {
@ -57,58 +57,45 @@ export class MPServerSvc {
}
query = async(pattern:string)=>await this.model.sequelize.query(pattern);
async fetchPlayerData(serverName:string) {
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
if (findServerByName) return findServerByName.dataValues.playerData;
else return [];
const server = await this.model.findOne({where: {serverName: serverName}});
return server ? server.dataValues.playerData : [];
}
async addServer(serverName:string, ip:string, code:string) {
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
if (findServerByName) {
(await findServerByName.update({serverName: serverName, ip: ip, code: code})).save();
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
} else {
await this.model.create({
serverName: serverName,
isActive: true,
ip: ip,
code: code,
playerData: []
});
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
}
await this.model.upsert({
serverName,
isActive: true,
ip,
code,
playerData: []
});
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
}
async removeServer(serverName:string) {
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
if (findServerByName) {
await this.model.destroy({where: {serverName: serverName}});
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
}
await this.model.destroy({where: {serverName}});
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
}
async toggleServerUsability(serverName:string, isActive:boolean) {
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
if (findServerByName) {
this.model.update({isActive: isActive}, {where: {serverName: serverName}}).then(async flagUpdated=>{
if (flagUpdated) {
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
return true;
}
});
} else return false;
const [updated] = await this.model.update({isActive}, {where: {serverName}});
if (updated) {
await CacheServer.delete(cacheKey).then(async()=>await this.findInCache());
return true;
}
return false;
}
async incrementPlayerCount(serverName:string, playerCount:number) {
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
if (findServerByName) {
let PD = findServerByName.dataValues.playerData;
const server = await this.model.findOne({where: {serverName}});
if (server) {
let PD = server.dataValues.playerData;
if (PD.length > 1920) PD = []; //Selfnote: 86400/45 = 1920, where 86400 is seconds in a day and 45 is the MPModule's refresh interval.
PD.push(playerCount);
const updatePD = await this.model.update({playerData: PD}, {where: {serverName: serverName}});
if (updatePD) true;
else return false;
} else return false;
await this.model.update({playerData: PD}, {where: {serverName}});
return true;
}
return false;
}
async findInCache(): Promise<IServer[]> {
const cachedResult = await CacheServer.get(cacheKey, true);
let result;
let result:IServer[];
if (cachedResult) result = cachedResult;
else {
result = await this.model.findAll();

View File

@ -1,5 +1,6 @@
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
import Logger from '../helpers/Logger.js';
class dailyMsgs extends Model {
declare public day: number;
@ -26,18 +27,20 @@ export class DailyMsgsSvc {
tableName: 'dailymsgs',
createdAt: false,
updatedAt: false,
indexes: [
{name: 'day_index', fields: ['day'], unique: true}
],
sequelize: DatabaseServer.seq
})
this.model.sync();
}
query = async(pattern:string)=>await this.model.sequelize.query(pattern);
nukeDays = async()=>await this.model.destroy({truncate: true});
nukeDays = async()=>await this.model.destroy();
fetchDays = async()=>await this.model.findAll();
async newDay(formattedDate:number, total:number) {
if (await this.model.findOne({where: {day: formattedDate}})) return console.log('This day already exists!')
return await this.model.create({day: formattedDate, total: total});
const [instance, created] = await this.model.findOrCreate({where: {day: formattedDate}, defaults: {total}});
if (!created) return Logger.console('log', 'DailyMsgs', 'This day already exists!');
return instance
// Save previous day's total messages into database when a new day starts.
}
updateDay = async(formattedDate:number, total:number)=>await this.model.update({total: total}, {where: {day: formattedDate}});
// THIS IS FOR DEVELOPMENT PURPOSES ONLY, NOT TO BE USED IN LIVE ENVIRONMENT!
}

View File

@ -1,5 +1,5 @@
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
class prohibitedWords extends Model {
declare public word: string;

View File

@ -1,12 +1,24 @@
import Discord from 'discord.js';
import TClient from '../client.js';
import ms from 'ms';
import Logger from '../helpers/Logger.js';
import {Punishment} from 'src/interfaces';
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
import CacheServer from '../components/CacheServer.js';
import Formatters from '../helpers/Formatters.js';
const PAST_TENSE_MAPPING = {
ban: 'banned',
softban: 'softbanned',
kick: 'kicked',
mute: 'muted',
warn: 'warned',
remind: 'reminded'
};
const TRANSACTION_FAILED = 'An error occurred while updating the database. See console for more details.';
class punishments extends Model {
declare public case_id: number;
declare public type: string;
@ -84,20 +96,20 @@ export class PunishmentsSvc {
}
query = async(pattern:string)=>await this.model.sequelize.query(pattern);
async updateReason(caseId:number, reason:string) {
const findCase = this.findCase(caseId);
if (findCase) return this.model.update({reason: reason}, {where: {case_id: caseId}});
const findCase = this.findCaseOrCancels('case_id', caseId);
if (findCase) return this.model.update({reason}, {where: {case_id: caseId}});
}
findCase =(caseId:number)=>this.model.findOne({where: {case_id: caseId}});
findByCancels =(caseId:number)=>this.model.findOne({where: {cancels: caseId}})
findCaseOrCancels = (column:'case_id'|'cancels', id:number)=>this.model.findOne({where: {[column]: id}});
getAllCases =()=>this.model.findAll();
async generateCaseId() {
const result = await this.model.findAll();
return Math.max(...result.map((x:Punishment)=>x.case_id), 0) + 1;
const result = await this.model.max('case_id');
if (typeof result === 'number') return result + 1;
else return 0;
}
async findInCache():Promise<any> {
async findInCache():Promise<Punishment[]> {
const cacheKey = 'punishments';
const cachedResult = await CacheServer.get(cacheKey, true);
let result:any;
let result:Punishment[];
if (cachedResult) result = cachedResult;
else {
result = await this.model.findAll();
@ -113,7 +125,7 @@ export class PunishmentsSvc {
channel = this.client.config.dcServer.channels.bankick_log;
break;
default:
channel = this.client.config.dcServer.channels.logs;
channel = this.client.config.dcServer.channels.bot_log;
break;
}
const embed = new this.client.embed()
@ -132,16 +144,7 @@ export class PunishmentsSvc {
}
(this.client.channels.cache.get(channel) as Discord.TextChannel).send({embeds: [embed]});
}
getPastTense(type:string) {
return {
ban: 'banned',
softban: 'softbanned',
kick: 'kicked',
mute: 'muted',
warn: 'warned',
remind: 'reminded'
}[type];
}
getPastTense =(type:string)=>PAST_TENSE_MAPPING[type];
async punishmentAdd(type:string, options:{time?:string, interaction?:Discord.ChatInputCommandInteraction}, moderator:string, reason: string, user:Discord.User, guildUser?:Discord.GuildMember) {
const {time, interaction} = options;
const now = Date.now();
@ -165,14 +168,22 @@ export class PunishmentsSvc {
if (guildUser) await guildUser.send(`You've been ${this.getPastTense(type)} ${inOrFromBoolean} **${guild.name}**${durText}\n\`${reason}\` (Case #${punishment.case_id})`).catch(()=>embed.setFooter({text: 'Unable to DM a member'}));
if (['ban', 'softban'].includes(type)) {
const alreadyBanned = await guild.bans.fetch(user.id).catch(()=>null); // 172800 seconds is 48 hours, just for future reference
if (!alreadyBanned) punishmentResult = await guild.bans.create(user.id, {reason: auditLogReason, deleteMessageSeconds: 172800}).catch((err:Error)=>err.message);
else punishmentResult = `This user already exists in the guild\'s ban list.\nReason: \`${alreadyBanned?.reason}\``;
} else if (type === 'kick') punishmentResult = await guildUser?.kick(auditLogReason).catch((err:Error)=>err.message);
else if (type === 'mute') punishmentResult = await guildUser?.timeout(millisecondTime, auditLogReason).catch((err:Error)=>err.message);
if (type === 'softban' && typeof punishmentResult !== 'string') punishmentResult = await guild.bans.remove(user.id, auditLogReason).catch((err:Error)=>err.message);
switch (type) {
case 'ban':
case 'softban': {
const alreadyBanned = await guild.bans.fetch(user.id).catch(()=>null); // 172800 seconds is 48 hours, just for future reference
if (alreadyBanned) punishmentResult = `This user already exists in the guild\'s ban list.\nReason: \`${alreadyBanned?.reason}\``;
else punishmentResult = await guild.bans.create(user.id, {reason: auditLogReason, deleteMessageSeconds: 172800}).catch((err:Error)=>err.message);
if (type === 'softban' && typeof punishmentResult !== 'string') punishmentResult = await guild.bans.remove(user.id, auditLogReason).catch((err:Error)=>err.message);
break;
}
case 'kick':
punishmentResult = await guildUser?.kick(auditLogReason).catch((err:Error)=>err.message);
break;
case 'mute':
punishmentResult = await guildUser?.timeout(millisecondTime, auditLogReason).catch((err:Error)=>err.message);
break;
}
if (millisecondTime && ['ban', 'mute'].includes(type)) {
punishment.endTime = now + millisecondTime;
@ -183,22 +194,28 @@ export class PunishmentsSvc {
if (interaction) return interaction.editReply(punishmentResult);
else return punishmentResult;
} else {
const checkIfExists = await this.model.findOne({where: {case_id: punishment.case_id}});
if (checkIfExists) this.model.update({expired: punishment.expired, time: punishment.time, endTime: punishment.endTime}, {where: {case_id: punishment.case_id}})
else await this.model.create({
case_id: punishment.case_id,
type: punishment.type,
member_name: punishment.member_name,
member: punishment.member,
moderator: punishment.moderator,
expired: punishment.expired,
time: punishment.time,
reason: punishment.reason,
endTime: punishment.endTime,
cancels: punishment.cancels,
duration: punishment.duration
});
await this.createModlog(punishment);
try { // https://sequelize.org/docs/v7/querying/transactions/
await this.model.sequelize.transaction(async transaction=>{
await this.model.upsert({
case_id: punishment.case_id,
type: punishment.type,
member_name: punishment.member_name,
member: punishment.member,
moderator: punishment.moderator,
expired: punishment.expired,
time: punishment.time,
reason: punishment.reason,
endTime: punishment.endTime,
cancels: punishment.cancels,
duration: punishment.duration
}, {transaction});
await this.createModlog(punishment);
});
} catch (err) {
Logger.console('error', 'Punishment', err);
Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED);
return;
}
if (interaction) return interaction.editReply({embeds: [embed]});
else return punishmentResult;
@ -217,34 +234,48 @@ export class PunishmentsSvc {
let removePunishmentData:Punishment = {type: `un${punishment.type}`, case_id: ID, cancels: punishment.case_id, member_name: punishment.member_name, member: punishment.member, reason, moderator, time: now};
let removePunishmentResult:any;
if (punishment.type === 'ban') removePunishmentResult = await guild.bans.remove(punishment.member, auditLogReason).catch((err:Error)=>err.message);
else if (punishment.type === 'mute') {
if (guildUser) {
removePunishmentResult = await guildUser.timeout(null, auditLogReason).catch((err:Error)=>err.message);
guildUser.send(`You've been unmuted in **${guild.name}**.`).catch(()=>null);
} else this.model.update({expired: true}, {where: {case_id: caseId}});
} else removePunishmentData.type = 'punishmentOverride';
switch (punishment.type) {
case 'ban':
removePunishmentResult = await guild.bans.remove(punishment.member, auditLogReason).catch((err:Error)=>err.message);
break;
case 'mute':
if (guildUser) {
removePunishmentResult = await guildUser.timeout(null, auditLogReason).catch((err:Error)=>err.message);
guildUser.send(`You've been unmuted in **${guild.name}**.`).catch(()=>null);
} else this.model.update({expired: true}, {where: {case_id: caseId}});
break;
default:
removePunishmentData.type = 'punishmentOverride';
break;
}
if (typeof removePunishmentResult === 'string') {// Punishment was unsuccessful
if (interaction) return interaction.editReply(removePunishmentResult);
else return removePunishmentResult;
} else {
this.model.update({expired: true}, {where: {case_id: caseId}}).then(()=>
this.model.create({
case_id: removePunishmentData.case_id,
type: removePunishmentData.type,
member_name: removePunishmentData.member_name,
member: removePunishmentData.member,
moderator: removePunishmentData.moderator,
expired: removePunishmentData.expired,
time: removePunishmentData.time,
reason: removePunishmentData.reason,
endTime: removePunishmentData.endTime,
cancels: removePunishmentData.cancels,
duration: removePunishmentData.duration
})
);
await this.createModlog(removePunishmentData);
try { // https://sequelize.org/docs/v7/querying/transactions/
await this.model.sequelize.transaction(async transaction=>{
await this.model.update({expired: true}, {where: {case_id: caseId}, transaction})
await this.model.upsert({
case_id: removePunishmentData.case_id,
type: removePunishmentData.type,
member_name: removePunishmentData.member_name,
member: removePunishmentData.member,
moderator: removePunishmentData.moderator,
expired: removePunishmentData.expired,
time: removePunishmentData.time,
reason: removePunishmentData.reason,
endTime: removePunishmentData.endTime,
cancels: removePunishmentData.cancels,
duration: removePunishmentData.duration
}, {transaction});
await this.createModlog(removePunishmentData);
});
} catch (err) {
Logger.console('error', 'Punishment', err);
Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED);
return;
}
if (interaction) return interaction.reply({embeds: [new this.client.embed()
.setColor(this.client.config.embedColor)

View File

@ -1,5 +1,5 @@
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
class suggestions extends Model {
declare public id: number;

View File

@ -2,7 +2,7 @@ import TClient from '../client.js';
import MessageTool from '../helpers/MessageTool.js';
import CacheServer from '../components/CacheServer.js';
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
import {ChatInputCommandInteraction, Snowflake} from 'discord.js';
class tagsystem extends Model {
@ -79,7 +79,7 @@ export class TagSystemSvc {
async findInCache(): Promise<Tags[]> {
const cacheKey = 'tags';
const cachedResult = await CacheServer.get(cacheKey, true);
let result;
let result:Tags[];
if (cachedResult) result = cachedResult;
else {
result = await this.model.findAll();

View File

@ -2,7 +2,7 @@ import Discord from 'discord.js';
import TClient from '../client.js';
import MessageTool from '../helpers/MessageTool.js';
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
import {writeFileSync} from 'node:fs';
import cron from 'node-cron';
import Logger from '../helpers/Logger.js';
@ -61,9 +61,9 @@ export class UserLevelsSvc {
fetchEveryone = async()=>await this.model.findAll();
fetchUser = async(userId:string)=>await this.model.findByPk(userId);
deleteUser = async(userId:string)=>await this.model.destroy({where: {id: userId}});
async modifyUser(userId:string, updatedMessages:number) {
await this.model.update({messages: updatedMessages}, {where: {id: userId}});
return (await this.model.findByPk(userId)).dataValues;
async modifyUser(userId:string, messages:number) {
const [_, [updatedUser]] = await this.model.update({messages}, {where: {id: userId}, returning: true});
return updatedUser.dataValues;
}
async blockUser(userId:string, duration:number):Promise<boolean> {
const data = await this.model.findByPk(userId);
@ -74,8 +74,8 @@ export class UserLevelsSvc {
}
}
async getActiveUsers() {
const members = (await this.model.findAll()).sort((a,b)=>b.dataValues.messages-a.dataValues.messages);
return members.slice(0, 5);
const members = await this.model.findAll({order: [['messages', 'DESC']], limit: 5});
return members;
}
async messageIncremental(userId:string) {
const data = await this.model.findByPk(userId);
@ -119,11 +119,11 @@ export class UserLevelsSvc {
Logger.console('log', 'Cron:resetAllData', `Counted ${performCountBeforeReset.toLocaleString()} members before reset`);
await this.client.dailyMsgs.nukeDays();
await this.model.drop().then(async()=>await this.model.sync());
await this.model.truncate();
try {
// Send notification to dcServer's logs channel after cronjob is complete.
(this.client.channels.resolve(this.client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new this.client.embed()
(this.client.channels.resolve(this.client.config.dcServer.channels.bot_log) as Discord.TextChannel).send({embeds: [new this.client.embed()
.setColor('#A3FFE3')
.setTitle('Yearly data reset has begun!')
.setDescription(MessageTool.concatMessage(
@ -139,16 +139,12 @@ export class UserLevelsSvc {
// Reset LRSstart to current Epoch and save it to config file
const newEpoch = new Date().getTime();
this.client.config.LRSstart = newEpoch;
const logText = `Resetting LRSstart to \`${newEpoch}\`, saved to config file`;
Logger.console('log', 'DailyMsgs', logText);
(this.client.channels.resolve(this.client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [new this.client.embed()
.setColor(this.client.config.embedColorXmas)
.setTitle('Happy New Years! Level System is clean!')
.setDescription(logText)
]}).catch(err=>console.log(err));
writeFileSync('src/config.json', JSON.stringify(this.client.config, null, 2));
Logger.console('log', 'Cron:resetAllData', 'Job completed');
if (this.client.config.LRSstart !== newEpoch) {
this.client.config.LRSstart = newEpoch;
Logger.console('log', 'Cron:resetAllData', `Resetting LRSstart to \`${newEpoch}\`, saved to config file`);
writeFileSync('src/config.json', JSON.stringify(this.client.config, null, 2));
Logger.console('log', 'Cron:resetAllData', 'Job completed');
}
})
}
algorithm = (level:number)=>level*level*15;

View File

@ -1,5 +1,5 @@
import DatabaseServer from '../components/DatabaseServer.js';
import {Model, DataTypes} from 'sequelize';
import {Model, DataTypes} from '@sequelize/core';
class youtubeChannels extends Model {
declare public ytchannel: string;
@ -36,9 +36,8 @@ export class YouTubeChannelsSvc {
}
query = async(pattern:string)=>await this.model.sequelize.query(pattern);
async addChannel(YTChannelID:string, DCChannelID:string, DCRole:string) {
if (await this.model.findOne({where: {ytchannel: YTChannelID}})) return false;
await this.model.create({ytchannel: YTChannelID, dcchannel: DCChannelID, dcrole: DCRole});
return true;
const [_, created] = await this.model.findOrCreate({where: {ytchannel: YTChannelID}, defaults: {dcchannel: DCChannelID, dcrole: DCRole}});
return created;
}
delChannel = async(YTChannelID:string)=>await this.model.destroy({where: {ytchannel: YTChannelID}});
getChannels = async()=>await this.model.findAll();

View File

@ -11,12 +11,12 @@
"allowSyntheticDefaultImports": true,
"target": "ES2022",
"module": "ESNext",
"baseUrl": "./",
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist",
"moduleResolution": "bundler",
"typeRoots": [ "./src/interfaces.d.ts" ]
},
"include": [ "src" ],
"exclude": [ ".yarn/cache", ".yarn/unplugged", ".git", "src/*.json", "postgres-replica-stuff" ]
"exclude": [ ".yarn/cache", ".yarn/unplugged", ".git", "src/*.json" ]
}

487
yarn.lock
View File

@ -116,82 +116,82 @@ __metadata:
languageName: node
linkType: hard
"@napi-rs/canvas-android-arm64@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-android-arm64@npm:0.1.50"
"@napi-rs/canvas-android-arm64@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-android-arm64@npm:0.1.51"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/canvas-darwin-arm64@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-darwin-arm64@npm:0.1.50"
"@napi-rs/canvas-darwin-arm64@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-darwin-arm64@npm:0.1.51"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/canvas-darwin-x64@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-darwin-x64@npm:0.1.50"
"@napi-rs/canvas-darwin-x64@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-darwin-x64@npm:0.1.51"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.50"
"@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-linux-arm-gnueabihf@npm:0.1.51"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm64-gnu@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-linux-arm64-gnu@npm:0.1.50"
"@napi-rs/canvas-linux-arm64-gnu@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-linux-arm64-gnu@npm:0.1.51"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@napi-rs/canvas-linux-arm64-musl@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-linux-arm64-musl@npm:0.1.50"
"@napi-rs/canvas-linux-arm64-musl@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-linux-arm64-musl@npm:0.1.51"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@napi-rs/canvas-linux-x64-gnu@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-linux-x64-gnu@npm:0.1.50"
"@napi-rs/canvas-linux-x64-gnu@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-linux-x64-gnu@npm:0.1.51"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@napi-rs/canvas-linux-x64-musl@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-linux-x64-musl@npm:0.1.50"
"@napi-rs/canvas-linux-x64-musl@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-linux-x64-musl@npm:0.1.51"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@napi-rs/canvas-win32-x64-msvc@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas-win32-x64-msvc@npm:0.1.50"
"@napi-rs/canvas-win32-x64-msvc@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas-win32-x64-msvc@npm:0.1.51"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@napi-rs/canvas@npm:0.1.50":
version: 0.1.50
resolution: "@napi-rs/canvas@npm:0.1.50"
"@napi-rs/canvas@npm:0.1.51":
version: 0.1.51
resolution: "@napi-rs/canvas@npm:0.1.51"
dependencies:
"@napi-rs/canvas-android-arm64": "npm:0.1.50"
"@napi-rs/canvas-darwin-arm64": "npm:0.1.50"
"@napi-rs/canvas-darwin-x64": "npm:0.1.50"
"@napi-rs/canvas-linux-arm-gnueabihf": "npm:0.1.50"
"@napi-rs/canvas-linux-arm64-gnu": "npm:0.1.50"
"@napi-rs/canvas-linux-arm64-musl": "npm:0.1.50"
"@napi-rs/canvas-linux-x64-gnu": "npm:0.1.50"
"@napi-rs/canvas-linux-x64-musl": "npm:0.1.50"
"@napi-rs/canvas-win32-x64-msvc": "npm:0.1.50"
"@napi-rs/canvas-android-arm64": "npm:0.1.51"
"@napi-rs/canvas-darwin-arm64": "npm:0.1.51"
"@napi-rs/canvas-darwin-x64": "npm:0.1.51"
"@napi-rs/canvas-linux-arm-gnueabihf": "npm:0.1.51"
"@napi-rs/canvas-linux-arm64-gnu": "npm:0.1.51"
"@napi-rs/canvas-linux-arm64-musl": "npm:0.1.51"
"@napi-rs/canvas-linux-x64-gnu": "npm:0.1.51"
"@napi-rs/canvas-linux-x64-musl": "npm:0.1.51"
"@napi-rs/canvas-win32-x64-msvc": "npm:0.1.51"
dependenciesMeta:
"@napi-rs/canvas-android-arm64":
optional: true
@ -211,7 +211,34 @@ __metadata:
optional: true
"@napi-rs/canvas-win32-x64-msvc":
optional: true
checksum: 10/c9ed3ecdaa54c82b4a98bbd7a5297b80083e779ab28a929b2a795ef58b436850a40b569b36f93b709d8ae811573680b775688179d8e7d7d6fbd181420c6945ca
checksum: 10/10d4e8f8849bd476bfaa0ef169c0cfd9612d61affa5a6e3cb60d7e877a57be1557b6a5a2f4da4cfcb50422828d1dfcb01c5279d5fc319c77ee3b3eb9350bbacc
languageName: node
linkType: hard
"@nodelib/fs.scandir@npm:2.1.5":
version: 2.1.5
resolution: "@nodelib/fs.scandir@npm:2.1.5"
dependencies:
"@nodelib/fs.stat": "npm:2.0.5"
run-parallel: "npm:^1.1.9"
checksum: 10/6ab2a9b8a1d67b067922c36f259e3b3dfd6b97b219c540877a4944549a4d49ea5ceba5663905ab5289682f1f3c15ff441d02f0447f620a42e1cb5e1937174d4b
languageName: node
linkType: hard
"@nodelib/fs.stat@npm:2.0.5, @nodelib/fs.stat@npm:^2.0.2":
version: 2.0.5
resolution: "@nodelib/fs.stat@npm:2.0.5"
checksum: 10/012480b5ca9d97bff9261571dbbec7bbc6033f69cc92908bc1ecfad0792361a5a1994bc48674b9ef76419d056a03efadfce5a6cf6dbc0a36559571a7a483f6f0
languageName: node
linkType: hard
"@nodelib/fs.walk@npm:^1.2.3":
version: 1.2.8
resolution: "@nodelib/fs.walk@npm:1.2.8"
dependencies:
"@nodelib/fs.scandir": "npm:2.1.5"
fastq: "npm:^1.6.0"
checksum: 10/40033e33e96e97d77fba5a238e4bba4487b8284678906a9f616b5579ddaf868a18874c0054a75402c9fbaaa033a25ceae093af58c9c30278e35c23c9479e79b0
languageName: node
linkType: hard
@ -427,32 +454,60 @@ __metadata:
languageName: node
linkType: hard
"@toast/tokenservice-client@npm:1.0.14":
version: 1.0.14
resolution: "@toast/tokenservice-client@npm:1.0.14::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.14%2Ftokenservice-client-1.0.14.tgz"
"@sequelize/core@npm:7.0.0-alpha.37":
version: 7.0.0-alpha.37
resolution: "@sequelize/core@npm:7.0.0-alpha.37"
dependencies:
"@types/debug": "npm:^4.1.7"
"@types/validator": "npm:^13.7.5"
bnf-parser: "npm:3.1.6"
dayjs: "npm:^1.11.5"
debug: "npm:^4.3.4"
dottie: "npm:^2.0.2"
fast-glob: "npm:^3.2.12"
inflection: "npm:^3.0.0"
lodash: "npm:^4.17.21"
pg-connection-string: "npm:^2.5.0"
pg-hstore: "npm:^2.3.4"
retry-as-promised: "npm:^7.0.3"
semver: "npm:^7.3.7"
sequelize-pool: "npm:^8.0.0"
toposort-class: "npm:^1.0.1"
type-fest: "npm:^3.0.0"
uuid: "npm:^9.0.0"
validator: "npm:^13.7.0"
wkx: "npm:^0.5.0"
peerDependenciesMeta:
ibm_db:
optional: true
mariadb:
optional: true
mysql2:
optional: true
odbc:
optional: true
pg:
optional: true
snowflake-sdk:
optional: true
sqlite3:
optional: true
tedious:
optional: true
checksum: 10/dcaadb079bc5fcc505efbfff18ca8165dae4a24ad9c9f9f99e91474343e27986ceef702a69db0ab5406988b151dfa76f05e536425c08b29e80e10da70bb437fd
languageName: node
linkType: hard
"@toast/tokenservice-client@npm:1.0.16":
version: 1.0.16
resolution: "@toast/tokenservice-client@npm:1.0.16::__archiveUrl=https%3A%2F%2Fgit.toast-server.net%2Fapi%2Fpackages%2Ftoast%2Fnpm%2F%2540toast%252Ftokenservice-client%2F-%2F1.0.16%2Ftokenservice-client-1.0.16.tgz"
dependencies:
undici: "npm:6.7.0"
checksum: 10/b478e70965fec7f2f1c492e5ecf4b5d33b5044c29e2391dec3d52e1137e8f4bf3849e587e1830e9469eba5db7505d691cc625846d2a70610af4a91e1f94833e0
checksum: 10/a946df28f2ba6e36f881f7160bafe0dfe06227520b2a1a8ace729651064103bce92dcfc0d23deb6df845839f380fbdc17af86b1f1ea11ab3cc513c751ec23fb8
languageName: node
linkType: hard
"@types/bluebird@npm:*":
version: 3.5.42
resolution: "@types/bluebird@npm:3.5.42"
checksum: 10/09ad60b083f916c7611936d3c70986df8f2eae11e46768ab7901d86bee5b1ca6b00cd9ef8cc0d3761256e2bc4ada3388e5529f71745a6b3d7602e868e3530310
languageName: node
linkType: hard
"@types/continuation-local-storage@npm:*":
version: 3.2.7
resolution: "@types/continuation-local-storage@npm:3.2.7"
dependencies:
"@types/node": "npm:*"
checksum: 10/1f272b53bc56774773b7cbd6019ae26843599fb9073cb70c3dda13f8bfac5eabb6c8bf33f548a37be9c6d772eb9a4ab4399bc7d25bc82588655f51f572df79f3
languageName: node
linkType: hard
"@types/debug@npm:^4.1.8":
"@types/debug@npm:^4.1.7":
version: 4.1.12
resolution: "@types/debug@npm:4.1.12"
dependencies:
@ -461,13 +516,6 @@ __metadata:
languageName: node
linkType: hard
"@types/lodash@npm:*":
version: 4.14.202
resolution: "@types/lodash@npm:4.14.202"
checksum: 10/1bb9760a5b1dda120132c4b987330d67979c95dbc22612678682cd61b00302e190f4207228f3728580059cdab5582362262e3819aea59960c1017bd2b9fb26f6
languageName: node
linkType: hard
"@types/ms@npm:*, @types/ms@npm:0.7.34":
version: 0.7.34
resolution: "@types/ms@npm:0.7.34"
@ -482,12 +530,12 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:20.11.24":
version: 20.11.24
resolution: "@types/node@npm:20.11.24"
"@types/node@npm:*, @types/node@npm:20.11.25":
version: 20.11.25
resolution: "@types/node@npm:20.11.25"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10/7f34bfae5f9b98b9910230af4b4c52dc7fb2d1e96fdebfbc3d7576f8ab3d100076f193f9469add9e7418b455294155e7e6a028498cc5e98f9d49349875a459cf
checksum: 10/861265f1bbb151404bd8842b595f027a4ff067c61ecff9a37b9f7f53922c18dd532c8e795e8e7675dd8dba056645623fd2b9848d5ef72863ec3609096cd2923e
languageName: node
linkType: hard
@ -502,19 +550,7 @@ __metadata:
languageName: node
linkType: hard
"@types/sequelize@npm:4.28.20":
version: 4.28.20
resolution: "@types/sequelize@npm:4.28.20"
dependencies:
"@types/bluebird": "npm:*"
"@types/continuation-local-storage": "npm:*"
"@types/lodash": "npm:*"
"@types/validator": "npm:*"
checksum: 10/8b3faec2e650ee299ae8a8a06bab7bd928131938ba34c7faa1d5c099682d6649e7aa68b0540a3e4883db7e3bc10d043ae3f23624d11b42a60f6bcbd40800ffac
languageName: node
linkType: hard
"@types/validator@npm:*, @types/validator@npm:^13.7.17":
"@types/validator@npm:^13.7.5":
version: 13.11.9
resolution: "@types/validator@npm:13.11.9"
checksum: 10/2d397c69293cc726e0cf1b4c74c563ca4e459b00f216f3ff0ac184c9648103be27169e8c67f85be9c6e7a3fcbb149c6add66a2547b185a1b25aa79e4b61261bd
@ -560,6 +596,22 @@ __metadata:
languageName: node
linkType: hard
"bnf-parser@npm:3.1.6":
version: 3.1.6
resolution: "bnf-parser@npm:3.1.6"
checksum: 10/caaf7078e2a5a9ab97f7f0b65eb1d034b5f5b9f80b189fee9ff3b9aa36dad79820b12f978eb079a7c8b3da37a7bd65b763313deee5058fc76c5d6900d2e3b981
languageName: node
linkType: hard
"braces@npm:^3.0.2":
version: 3.0.2
resolution: "braces@npm:3.0.2"
dependencies:
fill-range: "npm:^7.0.1"
checksum: 10/966b1fb48d193b9d155f810e5efd1790962f2c4e0829f8440b8ad236ba009222c501f70185ef732fef17a4c490bb33a03b90dab0631feafbdf447da91e8165b1
languageName: node
linkType: hard
"buffer-writer@npm:2.0.0":
version: 2.0.0
resolution: "buffer-writer@npm:2.0.0"
@ -585,14 +637,14 @@ __metadata:
version: 0.0.0-use.local
resolution: "daggerbot-ts@workspace:."
dependencies:
"@napi-rs/canvas": "npm:0.1.50"
"@napi-rs/canvas": "npm:0.1.51"
"@octokit/rest": "npm:20.0.2"
"@toast/tokenservice-client": "npm:1.0.14"
"@sequelize/core": "npm:7.0.0-alpha.37"
"@toast/tokenservice-client": "npm:1.0.16"
"@types/ms": "npm:0.7.34"
"@types/node": "npm:20.11.24"
"@types/node": "npm:20.11.25"
"@types/node-cron": "npm:3.0.11"
"@types/pg": "npm:8.11.2"
"@types/sequelize": "npm:4.28.20"
ansi-colors: "npm:4.1.3"
dayjs: "npm:1.11.10"
discord.js: "npm:14.14.1"
@ -602,16 +654,16 @@ __metadata:
node-cron: "npm:3.0.3"
pg: "npm:8.11.3"
pg-hstore: "npm:2.3.4"
postgres-array: "npm:3.0.2"
redis: "npm:4.6.13"
sequelize: "npm:6.37.1"
simple-git: "npm:3.22.0"
systeminformation: "npm:5.22.0"
typescript: "npm:5.3.3"
undici: "npm:6.7.0"
typescript: "npm:5.4.2"
undici: "npm:6.7.1"
languageName: unknown
linkType: soft
"dayjs@npm:1.11.10":
"dayjs@npm:1.11.10, dayjs@npm:^1.11.5":
version: 1.11.10
resolution: "dayjs@npm:1.11.10"
checksum: 10/27e8f5bc01c0a76f36c656e62ab7f08c2e7b040b09e613cd4844abf03fb258e0350f0a83b02c887b84d771c1f11e092deda0beef8c6df2a1afbc3f6c1fade279
@ -673,7 +725,7 @@ __metadata:
languageName: node
linkType: hard
"dottie@npm:^2.0.6":
"dottie@npm:^2.0.2":
version: 2.0.6
resolution: "dottie@npm:2.0.6"
checksum: 10/698731cfa2c1b530ba3491fa864dc572678a2a6de801f25912e2e4d7d4669ae013b696711786016bf41c7b6f98057c678503f14550bb171b3f70cdadffb9218f
@ -694,6 +746,19 @@ __metadata:
languageName: node
linkType: hard
"fast-glob@npm:^3.2.12":
version: 3.3.2
resolution: "fast-glob@npm:3.3.2"
dependencies:
"@nodelib/fs.stat": "npm:^2.0.2"
"@nodelib/fs.walk": "npm:^1.2.3"
glob-parent: "npm:^5.1.2"
merge2: "npm:^1.3.0"
micromatch: "npm:^4.0.4"
checksum: 10/222512e9315a0efca1276af9adb2127f02105d7288fa746145bf45e2716383fb79eb983c89601a72a399a56b7c18d38ce70457c5466218c5f13fad957cee16df
languageName: node
linkType: hard
"fast-xml-parser@npm:4.3.5":
version: 4.3.5
resolution: "fast-xml-parser@npm:4.3.5"
@ -705,6 +770,24 @@ __metadata:
languageName: node
linkType: hard
"fastq@npm:^1.6.0":
version: 1.17.1
resolution: "fastq@npm:1.17.1"
dependencies:
reusify: "npm:^1.0.4"
checksum: 10/a443180068b527dd7b3a63dc7f2a47ceca2f3e97b9c00a1efe5538757e6cc4056a3526df94308075d7727561baf09ebaa5b67da8dcbddb913a021c5ae69d1f69
languageName: node
linkType: hard
"fill-range@npm:^7.0.1":
version: 7.0.1
resolution: "fill-range@npm:7.0.1"
dependencies:
to-regex-range: "npm:^5.0.1"
checksum: 10/e260f7592fd196b4421504d3597cc76f4a1ca7a9488260d533b611fc3cefd61e9a9be1417cb82d3b01ad9f9c0ff2dbf258e1026d2445e26b0cf5148ff4250429
languageName: node
linkType: hard
"fraction.js@npm:4.3.4":
version: 4.3.4
resolution: "fraction.js@npm:4.3.4"
@ -719,10 +802,42 @@ __metadata:
languageName: node
linkType: hard
"inflection@npm:^1.13.4":
version: 1.13.4
resolution: "inflection@npm:1.13.4"
checksum: 10/a0cc1b105ccbda9607b5d1610b5c7aa35456ca06b7f3573a47c677e1f829052859cacc36601c3c07de89cb756616a440814ef2d190a6ae70398e6aa6efc2a547
"glob-parent@npm:^5.1.2":
version: 5.1.2
resolution: "glob-parent@npm:5.1.2"
dependencies:
is-glob: "npm:^4.0.1"
checksum: 10/32cd106ce8c0d83731966d31517adb766d02c3812de49c30cfe0675c7c0ae6630c11214c54a5ae67aca882cf738d27fd7768f21aa19118b9245950554be07247
languageName: node
linkType: hard
"inflection@npm:^3.0.0":
version: 3.0.0
resolution: "inflection@npm:3.0.0"
checksum: 10/e8aae6abb872a8aa19184a1b84470fff7120806329c78011befcf50bce04a7b0d65012ac373f2cc5caeaaf241874c7ae20a26038ff7dbe0cdae0b863f25b5e02
languageName: node
linkType: hard
"is-extglob@npm:^2.1.1":
version: 2.1.1
resolution: "is-extglob@npm:2.1.1"
checksum: 10/df033653d06d0eb567461e58a7a8c9f940bd8c22274b94bf7671ab36df5719791aae15eef6d83bbb5e23283967f2f984b8914559d4449efda578c775c4be6f85
languageName: node
linkType: hard
"is-glob@npm:^4.0.1":
version: 4.0.3
resolution: "is-glob@npm:4.0.3"
dependencies:
is-extglob: "npm:^2.1.1"
checksum: 10/3ed74f2b0cdf4f401f38edb0442ddfde3092d79d7d35c9919c86641efdbcbb32e45aa3c0f70ce5eecc946896cd5a0f26e4188b9f2b881876f7cb6c505b82da11
languageName: node
linkType: hard
"is-number@npm:^7.0.0":
version: 7.0.0
resolution: "is-number@npm:7.0.0"
checksum: 10/6a6c3383f68afa1e05b286af866017c78f1226d43ac8cb064e115ff9ed85eb33f5c4f7216c96a71e4dfea289ef52c5da3aef5bbfade8ffe47a0465d70c0c8e86
languageName: node
linkType: hard
@ -782,19 +897,20 @@ __metadata:
languageName: node
linkType: hard
"moment-timezone@npm:^0.5.43":
version: 0.5.45
resolution: "moment-timezone@npm:0.5.45"
dependencies:
moment: "npm:^2.29.4"
checksum: 10/45e3793d44bea8e826c934a335ebf0b92c6d6dae562fdb59d8c45a16d5c11de4d6692b5fa7eebca969881f06b81b55f8535883bfbc727b597d601709fa5a2bb2
"merge2@npm:^1.3.0":
version: 1.4.1
resolution: "merge2@npm:1.4.1"
checksum: 10/7268db63ed5169466540b6fb947aec313200bcf6d40c5ab722c22e242f651994619bcd85601602972d3c85bd2cc45a358a4c61937e9f11a061919a1da569b0c2
languageName: node
linkType: hard
"moment@npm:^2.29.4":
version: 2.30.1
resolution: "moment@npm:2.30.1"
checksum: 10/ae42d876d4ec831ef66110bdc302c0657c664991e45cf2afffc4b0f6cd6d251dde11375c982a5c0564ccc0fa593fc564576ddceb8c8845e87c15f58aa6baca69
"micromatch@npm:^4.0.4":
version: 4.0.5
resolution: "micromatch@npm:4.0.5"
dependencies:
braces: "npm:^3.0.2"
picomatch: "npm:^2.3.1"
checksum: 10/a749888789fc15cac0e03273844dbd749f9f8e8d64e70c564bcf06a033129554c789bb9e30d7566d7ff6596611a08e58ac12cf2a05f6e3c9c47c50c4c7e12fa2
languageName: node
linkType: hard
@ -851,14 +967,14 @@ __metadata:
languageName: node
linkType: hard
"pg-connection-string@npm:^2.6.1, pg-connection-string@npm:^2.6.2":
"pg-connection-string@npm:^2.5.0, pg-connection-string@npm:^2.6.2":
version: 2.6.2
resolution: "pg-connection-string@npm:2.6.2"
checksum: 10/22265882c3b6f2320785378d0760b051294a684989163d5a1cde4009e64e84448d7bf67d9a7b9e7f69440c3ee9e2212f9aa10dd17ad6773f6143c6020cebbcb5
languageName: node
linkType: hard
"pg-hstore@npm:2.3.4":
"pg-hstore@npm:2.3.4, pg-hstore@npm:^2.3.4":
version: 2.3.4
resolution: "pg-hstore@npm:2.3.4"
dependencies:
@ -958,6 +1074,20 @@ __metadata:
languageName: node
linkType: hard
"picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 10/60c2595003b05e4535394d1da94850f5372c9427ca4413b71210f437f7b2ca091dbd611c45e8b37d10036fa8eade25c1b8951654f9d3973bfa66a2ff4d3b08bc
languageName: node
linkType: hard
"postgres-array@npm:3.0.2, postgres-array@npm:~3.0.1":
version: 3.0.2
resolution: "postgres-array@npm:3.0.2"
checksum: 10/0159517e4e5f263bf9e324f0c4d3c10244a294021f2b5980abc8c23afdb965370a7fc0c82012fce4d28e83186ad089b6476b05fcef6c88f8e43e37a3a2fa0ad5
languageName: node
linkType: hard
"postgres-array@npm:~2.0.0":
version: 2.0.0
resolution: "postgres-array@npm:2.0.0"
@ -965,13 +1095,6 @@ __metadata:
languageName: node
linkType: hard
"postgres-array@npm:~3.0.1":
version: 3.0.2
resolution: "postgres-array@npm:3.0.2"
checksum: 10/0159517e4e5f263bf9e324f0c4d3c10244a294021f2b5980abc8c23afdb965370a7fc0c82012fce4d28e83186ad089b6476b05fcef6c88f8e43e37a3a2fa0ad5
languageName: node
linkType: hard
"postgres-bytea@npm:~1.0.0":
version: 1.0.0
resolution: "postgres-bytea@npm:1.0.0"
@ -1025,6 +1148,13 @@ __metadata:
languageName: node
linkType: hard
"queue-microtask@npm:^1.2.2":
version: 1.2.3
resolution: "queue-microtask@npm:1.2.3"
checksum: 10/72900df0616e473e824202113c3df6abae59150dfb73ed13273503127235320e9c8ca4aaaaccfd58cf417c6ca92a6e68ee9a5c3182886ae949a768639b388a7b
languageName: node
linkType: hard
"redis@npm:4.6.13":
version: 4.6.13
resolution: "redis@npm:4.6.13"
@ -1046,13 +1176,29 @@ __metadata:
languageName: node
linkType: hard
"retry-as-promised@npm:^7.0.4":
"retry-as-promised@npm:^7.0.3":
version: 7.0.4
resolution: "retry-as-promised@npm:7.0.4"
checksum: 10/cd9fd20e990c6980a2979348fbc198aa4a065f03242c1cd7782372da7054253927e0803291c843db07255a38d255936cc0f9da55bf826c9f75443a9dedb8bf4b
languageName: node
linkType: hard
"reusify@npm:^1.0.4":
version: 1.0.4
resolution: "reusify@npm:1.0.4"
checksum: 10/14222c9e1d3f9ae01480c50d96057228a8524706db79cdeb5a2ce5bb7070dd9f409a6f84a02cbef8cdc80d39aef86f2dd03d155188a1300c599b05437dcd2ffb
languageName: node
linkType: hard
"run-parallel@npm:^1.1.9":
version: 1.2.0
resolution: "run-parallel@npm:1.2.0"
dependencies:
queue-microtask: "npm:^1.2.2"
checksum: 10/cb4f97ad25a75ebc11a8ef4e33bb962f8af8516bb2001082ceabd8902e15b98f4b84b4f8a9b222e5d57fc3bd1379c483886ed4619367a7680dad65316993021d
languageName: node
linkType: hard
"seedrandom@npm:^3.0.5":
version: 3.0.5
resolution: "seedrandom@npm:3.0.5"
@ -1060,7 +1206,7 @@ __metadata:
languageName: node
linkType: hard
"semver@npm:^7.5.4":
"semver@npm:^7.3.7":
version: 7.6.0
resolution: "semver@npm:7.6.0"
dependencies:
@ -1071,53 +1217,10 @@ __metadata:
languageName: node
linkType: hard
"sequelize-pool@npm:^7.1.0":
version: 7.1.0
resolution: "sequelize-pool@npm:7.1.0"
checksum: 10/eeb0837451afb245cf3aece5d93c50ef051bd7f4397c4e578f8cbf41ebf485e0acd887c1aa3f4394b80dc874229a32ce5aafeaa2f00ec3ecc5dfcc518bd7bf7e
languageName: node
linkType: hard
"sequelize@npm:6.37.1":
version: 6.37.1
resolution: "sequelize@npm:6.37.1"
dependencies:
"@types/debug": "npm:^4.1.8"
"@types/validator": "npm:^13.7.17"
debug: "npm:^4.3.4"
dottie: "npm:^2.0.6"
inflection: "npm:^1.13.4"
lodash: "npm:^4.17.21"
moment: "npm:^2.29.4"
moment-timezone: "npm:^0.5.43"
pg-connection-string: "npm:^2.6.1"
retry-as-promised: "npm:^7.0.4"
semver: "npm:^7.5.4"
sequelize-pool: "npm:^7.1.0"
toposort-class: "npm:^1.0.1"
uuid: "npm:^8.3.2"
validator: "npm:^13.9.0"
wkx: "npm:^0.5.0"
peerDependenciesMeta:
ibm_db:
optional: true
mariadb:
optional: true
mysql2:
optional: true
oracledb:
optional: true
pg:
optional: true
pg-hstore:
optional: true
snowflake-sdk:
optional: true
sqlite3:
optional: true
tedious:
optional: true
checksum: 10/05be9a1e67c444a0a9c2951cd9b0fd7ac08ed2b81671307ca631b4c7597f357b53a26cdff3a3e39a3cd0a927abfce18afc7a472957fcb17b4e26aa5caca97e3c
"sequelize-pool@npm:^8.0.0":
version: 8.0.0
resolution: "sequelize-pool@npm:8.0.0"
checksum: 10/c449ec2f3444f75372fde505bf26a22724ee7336192fd7937e546759bca19256fefd39970230b4eb11f1dcb106607dae7085e14e3dc8e3c1a90d30f7874de204
languageName: node
linkType: hard
@ -1163,6 +1266,15 @@ __metadata:
languageName: node
linkType: hard
"to-regex-range@npm:^5.0.1":
version: 5.0.1
resolution: "to-regex-range@npm:5.0.1"
dependencies:
is-number: "npm:^7.0.0"
checksum: 10/10dda13571e1f5ad37546827e9b6d4252d2e0bc176c24a101252153ef435d83696e2557fe128c4678e4e78f5f01e83711c703eef9814eb12dab028580d45980a
languageName: node
linkType: hard
"toposort-class@npm:^1.0.1":
version: 1.0.1
resolution: "toposort-class@npm:1.0.1"
@ -1184,6 +1296,13 @@ __metadata:
languageName: node
linkType: hard
"type-fest@npm:^3.0.0":
version: 3.13.1
resolution: "type-fest@npm:3.13.1"
checksum: 10/9a8a2359ada34c9b3affcaf3a8f73ee14c52779e89950db337ce66fb74c3399776c697c99f2532e9b16e10e61cfdba3b1c19daffb93b338b742f0acd0117ce12
languageName: node
linkType: hard
"typed-function@npm:^4.1.1":
version: 4.1.1
resolution: "typed-function@npm:4.1.1"
@ -1191,23 +1310,23 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:5.3.3":
version: 5.3.3
resolution: "typescript@npm:5.3.3"
"typescript@npm:5.4.2":
version: 5.4.2
resolution: "typescript@npm:5.4.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/6e4e6a14a50c222b3d14d4ea2f729e79f972fa536ac1522b91202a9a65af3605c2928c4a790a4a50aa13694d461c479ba92cedaeb1e7b190aadaa4e4b96b8e18
checksum: 10/f8cfdc630ab1672f004e9561eb2916935b2d267792d07ce93e97fc601c7a65191af32033d5e9c0169b7dc37da7db9bf320f7432bc84527cb7697effaa4e4559d
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>":
version: 5.3.3
resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin<compat/typescript>::version=5.3.3&hash=e012d7"
"typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>":
version: 5.4.2
resolution: "typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/c93786fcc9a70718ba1e3819bab56064ead5817004d1b8186f8ca66165f3a2d0100fee91fa64c840dcd45f994ca5d615d8e1f566d39a7470fc1e014dbb4cf15d
checksum: 10/f5f9a4133c2670761f0166eae5b3bafbc4a3fc24f0f42a93c9c893d9e9d6e66ea066969c5e7483fa66b4ae0e99125592553f3b92fd3599484de8be13b0615176
languageName: node
linkType: hard
@ -1243,6 +1362,13 @@ __metadata:
languageName: node
linkType: hard
"undici@npm:6.7.1":
version: 6.7.1
resolution: "undici@npm:6.7.1"
checksum: 10/7e66eb7fb6b3641efc9381b335334a7fe0d69d4b8004147b2a7658f279adfd392fb908acf71627e2cd1f863d9ab4d5b1470139364468d486ab69aee43a8246e5
languageName: node
linkType: hard
"universal-user-agent@npm:^6.0.0":
version: 6.0.1
resolution: "universal-user-agent@npm:6.0.1"
@ -1250,7 +1376,7 @@ __metadata:
languageName: node
linkType: hard
"uuid@npm:8.3.2, uuid@npm:^8.3.2":
"uuid@npm:8.3.2":
version: 8.3.2
resolution: "uuid@npm:8.3.2"
bin:
@ -1259,7 +1385,16 @@ __metadata:
languageName: node
linkType: hard
"validator@npm:^13.9.0":
"uuid@npm:^9.0.0":
version: 9.0.1
resolution: "uuid@npm:9.0.1"
bin:
uuid: dist/bin/uuid
checksum: 10/9d0b6adb72b736e36f2b1b53da0d559125ba3e39d913b6072f6f033e0c87835b414f0836b45bcfaf2bdf698f92297fea1c3cc19b0b258bc182c9c43cc0fab9f2
languageName: node
linkType: hard
"validator@npm:^13.7.0":
version: 13.11.0
resolution: "validator@npm:13.11.0"
checksum: 10/4bf094641eb71729c06a42d669840e7189597ba655a8264adabac9bf03f95cd6fde5fbc894b0a13ee861bd4a852f56d2afdc9391aeaeb3fc0f9633a974140e12