Poll: help fallback, // separators, quoted questions, multi-vote

This commit is contained in:
Fisto
2026-09-11 16:07:21 +02:00
parent ace0bb18ff
commit 1dd573e334
5 changed files with 114 additions and 24 deletions
+23 -3
View File
@@ -44,6 +44,7 @@ Notes:
- The owner cannot be removed.
- The command accepts mentions and raw user IDs.
- `whitelist` commands need the admin tier.
- A bare `whitelist` or `whitelist help` shows the help.
- The reply follows the response policy.
## Polls
@@ -51,15 +52,34 @@ Notes:
The `poll` command posts a message and adds one number emoji per option. Discord users vote by
reacting. The poll closes after `pollSeconds` (default 120) and the daemon posts the result.
Format:
```
poll "Question" Option 1 // Option 2 [// Option 3 [// Option 4]]
poll Question | Option 1 | Option 2
```
- The question can be in quotes. Then the first option follows after the closing quote.
- Separators are `|` or `//`. The `//` separator needs whitespace on both sides. This keeps URLs
such as `https://example.com` in one piece.
- A bare `poll` or `poll help` shows the help.
- Options: 2 to 4. Each option is at most 80 characters.
Voting:
- Emojis: `1️⃣`, `2️⃣`, `3️⃣`, `4️⃣`.
- One vote per user. A new vote replaces the old vote.
- Removing the reaction removes the vote.
- Multiple reactions per user are allowed. Each reaction counts.
- Removing a reaction removes that one selection.
- The puppet's own reactions do not count.
- Votes do not need a trust tier. Friends can vote.
- The result message goes to the poll channel.
Example: `@puppet poll Lunch? | Pizza | Sushi`
Examples:
```
@puppet poll "What country is best" Sweden // Denmark // Madagaskar
@puppet poll Lunch? | Pizza | Sushi
```
## Response policy