Skip to content

Commit

Permalink
chore: parse the query formatted body
Browse files Browse the repository at this point in the history
  • Loading branch information
gtempus committed Nov 2, 2023
1 parent 240f745 commit ac0158c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions minecraft-slack-bot/minecraftBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ exports.handler = async (event) => {
// body: JSON.stringify(response.data),
// };

const text = parsedBody.get('text') || '';
const responseMessage = `You said: ${text}`;
const responseMessage = `You said: ${parsedBody.toString()}`;

// Send a message back to Slack
return {
Expand Down

0 comments on commit ac0158c

Please sign in to comment.