mirror of
https://github.com/kuhyx/signal-bot.git
synced 2026-11-24 18:36:21 +01:00
A compliment gets a reaction drawn from a small warm set (❤️ 🥰 😊 👍 🎉 🙏 😸) put on the compliment itself, and nothing in the group -- the one answer that adds no line. Same cooldown as every other command. The transport learns reactions: send_reaction on the Protocol, POST /v1/reactions/<number> on the REST adapter with the four fields api.SendReactionRequest requires (204 back), a recorded list on the fake. CommandContext.react() names the target the way a quote does, and falls back to the emoji as text for an envelope with no timestamp, so a shape this bot has never seen is visible rather than swallowed. The fake container gains the endpoint, strict about the schema, and records reactions in order with the sends; a scenario can now expect {kind: reaction, quotes: true}. First two-word trigger: fold() keeps the inner space and the registry matches whole text first, so "!good bot" resolves and "!good" does not; one-word spellings cover a double space. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| analytics_command.yaml | ||
| art_command.yaml | ||
| cat_command.yaml | ||
| chatter_is_silent.yaml | ||
| cooldown_is_per_user.yaml | ||
| cooldown.yaml | ||
| cyrillic_homoglyph.yaml | ||
| did_you_mean.yaml | ||
| discovers_a_new_group.yaml | ||
| dog_command.yaml | ||
| gecko_command.yaml | ||
| good_bot.yaml | ||
| help_command.yaml | ||
| joins_a_pending_invitation.yaml | ||
| mute_command.yaml | ||
| not_counted.yaml | ||
| pack_add_disabled.yaml | ||
| pack_combination.yaml | ||
| pack_command.yaml | ||
| pack_no_photo.yaml | ||
| pack_scoping.yaml | ||
| pack_video.yaml | ||
| per_group_isolation.yaml | ||
| poem_command.yaml | ||
| pope_command.yaml | ||
| quoted_reply.yaml | ||
| scoping.yaml | ||
| suggest.yaml | ||
| trap_command.yaml | ||
| unknown_command_scoping.yaml | ||
| unknown_command.yaml | ||