Allow bots to send region scoped messages

This commit is contained in:
jkingsman
2026-06-27 00:36:28 -07:00
parent 4b4dfb0767
commit ce4946351f
8 changed files with 461 additions and 22 deletions
@@ -94,7 +94,10 @@ const DEFAULT_BOT_CODE = `def bot(**kwargs) -> str | list[str] | None:
Returns:
None for no reply, a string for a single reply,
or a list of strings to send multiple messages in order
a list of strings to send multiple messages in order, or a dict
{"region": <name or None>, "message": <str or list[str]>} to scope a
channel reply to a region for that send only (None/"" = unscoped flood;
region is ignored for DM replies).
"""
sender_name = kwargs.get("sender_name")
message_text = kwargs.get("message_text", "")