From 4674f6eaed9bff46cf7f908848164fa23544f8b2 Mon Sep 17 00:00:00 2001 From: gtempus Date: Wed, 1 Nov 2023 21:16:59 -0400 Subject: [PATCH] chore: decode the slack payload --- minecraft-slack-bot/minecraftBot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minecraft-slack-bot/minecraftBot.js b/minecraft-slack-bot/minecraftBot.js index 5865b53..f510419 100644 --- a/minecraft-slack-bot/minecraftBot.js +++ b/minecraft-slack-bot/minecraftBot.js @@ -16,8 +16,8 @@ exports.handler = async (event) => { } // Parse the message from Slack - const body = parse(event.body); - console.log("Parsed body:", body); + const decodedData = Buffer.from(event.body, 'base64').toString('utf-8'); + console.log("Parsed body:", decodedData); // kick off the github action // Retrieve GitHub Token from AWS Secrets Manager