From f59d3fcbb0b40e0db4e0da9e8b3c60c7d7c114a4 Mon Sep 17 00:00:00 2001 From: Aeriqu Date: Thu, 16 Jan 2025 19:04:13 -0600 Subject: [PATCH] feat: add 50xx series discord notification groups (#3193) --- docs/reference/notification.md | 4 ++++ dotenv-example | 4 ++++ src/config.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/docs/reference/notification.md b/docs/reference/notification.md index b95556ab2e..88b4c4e0b0 100644 --- a/docs/reference/notification.md +++ b/docs/reference/notification.md @@ -41,6 +41,10 @@ Refer to https://github.com/node-apn/node-apn for config options. | `DISCORD_NOTIFY_GROUP_4080_12G` | Discord group to notify on 4080 12G stock | | `DISCORD_NOTIFY_GROUP_4080_16G` | Discord group to notify on 4080 16G stock | | `DISCORD_NOTIFY_GROUP_4090` | Discord group to notify on 4090 stock | +| `DISCORD_NOTIFY_GROUP_5070` | Discord group to notify on 5070 stock | +| `DISCORD_NOTIFY_GROUP_5070TI` | Discord group to notify on 5070 Ti stock | +| `DISCORD_NOTIFY_GROUP_5080` | Discord group to notify on 5080 stock | +| `DISCORD_NOTIFY_GROUP_5090` | Discord group to notify on 5090 stock | | `DISCORD_NOTIFY_GROUP_RYZEN5600` | Discord group to notify on 5600X stock | | `DISCORD_NOTIFY_GROUP_RYZEN5800` | Discord group to notify on 5800X stock | | `DISCORD_NOTIFY_GROUP_RYZEN5900` | Discord group to notify on 5900X stock | diff --git a/dotenv-example b/dotenv-example index 0d97325576..12bb3f8b4e 100644 --- a/dotenv-example +++ b/dotenv-example @@ -31,6 +31,10 @@ DISCORD_NOTIFY_GROUP_3090= DISCORD_NOTIFY_GROUP_4080_12G= DISCORD_NOTIFY_GROUP_4080_16G= DISCORD_NOTIFY_GROUP_4090= +DISCORD_NOTIFY_GROUP_5070= +DISCORD_NOTIFY_GROUP_5070TI= +DISCORD_NOTIFY_GROUP_5080= +DISCORD_NOTIFY_GROUP_5090= DISCORD_NOTIFY_GROUP_CORSAIR_SF= DISCORD_NOTIFY_GROUP_RX6800= DISCORD_NOTIFY_GROUP_RX6800XT= diff --git a/src/config.ts b/src/config.ts index 7b40d57f38..adc106b71d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -240,6 +240,10 @@ const notifications = { '4080-12g': envOrArray(process.env.DISCORD_NOTIFY_GROUP_4080_12G), '4080-16g': envOrArray(process.env.DISCORD_NOTIFY_GROUP_4080_16G), 4090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_4090), + 5070: envOrArray(process.env.DISCORD_NOTIFY_GROUP_5070), + '5070ti': envOrArray(process.env.DISCORD_NOTIFY_GROUP_5070TI), + 5080: envOrArray(process.env.DISCORD_NOTIFY_GROUP_5080), + 5090: envOrArray(process.env.DISCORD_NOTIFY_GROUP_5090), 'captcha-deterrent': [], darkhero: envOrArray(process.env.DISCORD_NOTIFY_GROUP_DARKHERO), rx6700xt: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RX6700XT),