Skip to content

Commit

Permalink
remove spaces from trigger word
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniocosentino committed Apr 17, 2023
1 parent d37f2e6 commit 5911224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ app.event('app_mention', async ({ event, say }) => {
message: `Bot was mentioned. Here is the full mention: "${event.text}"`,
});

const triggerWord = removeMentionFromString(event.text);
const triggerWord = wordCleaner(removeMentionFromString(event.text));

switch (triggerWord) {
case 'vai!':
Expand Down

0 comments on commit 5911224

Please sign in to comment.