(text: string, botUserId: string)
| 163 | * Strip bot mention from message text |
| 164 | */ |
| 165 | export function stripBotMention(text: string, botUserId: string): string { |
| 166 | return text.replace(new RegExp(`<@${botUserId}>`, 'g'), '').trim(); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Resolve Slack user mentions to include names for better LLM understanding. |
no test coverage detected