MCPcopy Create free account
hub / github.com/Noumena-Network/code / pushRecentReaction

Function pushRecentReaction

src/buddy/observer.ts:231–236  ·  view source on GitHub ↗
(reaction: string)

Source from the content-addressed store, hash-verified

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

Callers 3

fireCompanionObserverFunction · 0.85
fireHatchReactionFunction · 0.85
firePetReactionFunction · 0.85

Calls 1

shiftMethod · 0.80

Tested by

no test coverage detected