From 4950eca51e0d478913ae5a88b0f5c39781253905 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sat, 30 Dec 2023 08:08:58 +1100 Subject: [PATCH] Add server identifier to MPModule webhook --- src/modules/MPModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/MPModule.ts b/src/modules/MPModule.ts index b3d79c6..9515dd0 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -113,7 +113,7 @@ async function multifarmWebhook(client:TClient, server:IServer, webhookId:string }; const getMappedValue =(map:Record, key:string, fallback:T):T=>map[key] ?? fallback; const data = await requestServerData(client, server); - if (!data) return Logger.console('log', loggingPrefix, 'Couldn\'t get data for webhook'); + if (!data) return Logger.console('log', loggingPrefix, `Couldn't get data for webhook (${server.serverName})`); const {csg} = data;// :tutelBRUH: (https://cdn.discordapp.com/emojis/1155276126176956486.webp) const fields:Discord.APIEmbedField[] = [ {name: 'Seasonal Growth', value: getMappedValue(txtMapping.growthMode, csg?.settings.growthMode, dataUnavailable), inline: true},