(reaction: string)
| 229 | } |
| 230 | |
| 231 | function pushRecentReaction(reaction: string): void { |
| 232 | recentReactions.push(reaction) |
| 233 | if (recentReactions.length > MAX_RECENT_REACTIONS) { |
| 234 | recentReactions.shift() |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | function wasBuddyAddressed(messages: readonly Message[], name: string): boolean { |
| 239 | const lastUserMessage = [...messages].findLast( |
no test coverage detected