From d12f43262933d8b5d60832898c8549f9fb7b1a68 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 27 Dec 2023 16:29:49 -0500 Subject: [PATCH] update logs channel --- .env.example | 1 + src/types/environment.d.ts | 1 + src/webserver/banshare.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 2d3fd83..d0e4a98 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ DISCORD_TOKEN= SERVER_ID= SAY_LOGS_CHANNEL= LOGS_CHANNEL= +SIMULATED_BAN_SHARE_LOGS_CHANNEL= # These arent needed outside of production MAVEN_REPO= diff --git a/src/types/environment.d.ts b/src/types/environment.d.ts index 5ccc5dd..74cff88 100644 --- a/src/types/environment.d.ts +++ b/src/types/environment.d.ts @@ -16,6 +16,7 @@ declare global { WEBSERVER_PORT: string; DATABASE_URL: string; SIMULATED_BAN_SHARE_KEY: string; + SIMULATED_BAN_SHARE_LOGS_CHANNEL: string; NODE_ENV: 'development' | 'dev-prod' | 'production'; } } diff --git a/src/webserver/banshare.ts b/src/webserver/banshare.ts index 1666d0c..b8cceaf 100644 --- a/src/webserver/banshare.ts +++ b/src/webserver/banshare.ts @@ -38,7 +38,7 @@ export const handleBanShare = (client: Client, req: Request, res: Response) => { }; const handleBan = async (client: Client, req: Request) => { - const channel = client.channels.cache.get(process.env.LOGS_CHANNEL); + const channel = client.channels.cache.get(process.env.SIMULATED_BAN_SHARE_LOGS_CHANNEL); const server = req.body.server; const userId = req.body.userid; const reason = req.body.reason;