Skip to content

Commit

Permalink
fix: update message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
schobele committed Nov 19, 2024
1 parent 4818911 commit 2124e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/slackbot/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,7 @@ app.event("app_mention", async ({ event, context }) => {
app.client.chat.postMessage({
token: context.botToken,
channel: event.channel,
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: msg,
},
},
],
text: msg,
thread_ts: (event as any).thread_ts || event.ts,
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/sre-assistant/SreAssistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Interaction Context:
Username: ${this.interactionContext["Username"]}
Date: ${this.interactionContext["Date"]}
Format your responses as slack messages and keep the answer concise and relevant.
Format your responses as slack mrkdwn messages and keep the answer concise and relevant.
`;
}

Expand Down

0 comments on commit 2124e87

Please sign in to comment.