Skip to content

Commit

Permalink
chore: decode the slack payload
Browse files Browse the repository at this point in the history
  • Loading branch information
gtempus committed Nov 2, 2023
1 parent 9f68e32 commit 4674f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft-slack-bot/minecraftBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4674f6e

Please sign in to comment.