(event)
| 1601 | } |
| 1602 | |
| 1603 | function pickActionExamples(event) { |
| 1604 | const beats = getActionBeats(event); |
| 1605 | const seed = `${event.senderId || ""}:${event.text || ""}`; |
| 1606 | const start = [...seed].reduce((sum, char) => sum + char.charCodeAt(0), 0) % beats.length; |
| 1607 | return Array.from({ length: 8 }, (_, offset) => beats[(start + offset * 3) % beats.length]); |
| 1608 | } |
| 1609 | |
| 1610 | function getActionBeats(event) { |
| 1611 | // Deployment customization: keep these neutral. Put character-specific |
no test coverage detected