(messageText: string, botUserId: string)
| 71 | * many humans are in the thread. |
| 72 | */ |
| 73 | export function isAddressedToAnotherUser(messageText: string, botUserId: string): boolean { |
| 74 | const match = /^<@(U[A-Z0-9]+)>/.exec(messageText.trim()); |
| 75 | return !!(match && match[1] !== botUserId); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * In a multi-party thread, determine whether a message is directed at Addie. |
no test coverage detected