upgrade packages, pass webhook to logger

This commit is contained in:
Erik 2023-12-08 14:50:46 +02:00
parent e48edd406b
commit 2a4ea0cb25
3 changed files with 13 additions and 13 deletions

View File

@ -26,7 +26,7 @@
"dependencies": {
"@discordjs/collection": "^1.5.1",
"@discordjs/rest": "^1.7.1",
"@navy.gif/logger": "^2.5.3",
"@navy.gif/logger": "^2.5.4",
"@navy.gif/timestring": "^6.0.6",
"@types/node": "^18.15.11",
"chalk": "^5.3.0",

View File

@ -73,7 +73,7 @@ class Controller extends EventEmitter
// Other
this.#slashCommandManager = new SlashCommandManager(this);
this.#logger = new MasterLogger(options.logger);
this.#logger = new MasterLogger({ ...options.logger, webhook: { url: process.env.ERROR_WEBHOOK_URL } });
this.#metrics = new Metrics(this);
// this.#apiClientUtil = new ApiClientUtil(this);

View File

@ -931,23 +931,23 @@ __metadata:
languageName: node
linkType: hard
"@navy.gif/discord-webhook@npm:^1.0.0":
version: 1.2.0
resolution: "@navy.gif/discord-webhook@npm:1.2.0"
"@navy.gif/discord-webhook@npm:^1.2.5":
version: 1.2.5
resolution: "@navy.gif/discord-webhook@npm:1.2.5"
dependencies:
node-fetch: 2
checksum: a993e641cbe02b9397237902844649e003abd54de90e210ffc331d916dd5d1e0514abff2f92d4051f2e96d3655f83d7d4dd6677465c266cf192301ddaf818f8c
checksum: bc1b30316dba362a4665c44507974048fb24b11d27ebc0769857d49defc8ef3c1da1fc76aa7443f2d433fa9ca5880a992a7406ba6f0cbc2da683b5b276b23674
languageName: node
linkType: hard
"@navy.gif/logger@npm:^2.5.3":
version: 2.5.3
resolution: "@navy.gif/logger@npm:2.5.3"
"@navy.gif/logger@npm:^2.5.4":
version: 2.5.4
resolution: "@navy.gif/logger@npm:2.5.4"
dependencies:
"@navy.gif/discord-webhook": ^1.0.0
"@navy.gif/discord-webhook": ^1.2.5
chalk: ^4.1.2
moment: ^2.29.4
checksum: 0936998e000f55dbe573db27b25f82fc02c4f906abb6f933634622f99e11035bf6f5f37047421d55db19a54e67a6f8f59962c60353862954f629c9dd79ff846d
checksum: 5081366171f84c4eaaead31562282a4056e84d601790f797ea2c857e582f66f15d009a6bcc576c5d6988063ce973e215c329fddc967acdf1d195971f6e7ba74e
languageName: node
linkType: hard
@ -4087,7 +4087,7 @@ __metadata:
dependencies:
"@discordjs/collection": ^1.5.1
"@discordjs/rest": ^1.7.1
"@navy.gif/logger": ^2.5.3
"@navy.gif/logger": ^2.5.4
"@navy.gif/timestring": ^6.0.6
"@types/common-tags": ^1.8.1
"@types/humanize-duration": ^3.27.1