File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ flowchart TD
3131| ---| ---| ---|
3232| 1 (highest) | ` --token ` CLI flag | ` discli --token Bot_ABC123 message send ... ` |
3333| 2 | ` DISCORD_BOT_TOKEN ` environment variable | ` export DISCORD_BOT_TOKEN=Bot_ABC123 ` |
34- | 3 (lowest) | ` ~/.discli/config.json ` file | ` { "token": "Bot_ABC123"} ` |
34+ | 3 (lowest) | ` ~/.discli/config.json ` file | ` { "token": "Bot_ABC123"} ` |
3535
3636The first source that provides a non-empty value wins. If none of the three sources has a token, discli exits with an error:
3737
Original file line number Diff line number Diff line change @@ -810,7 +810,7 @@ if __name__ == "__main__":
810810| Feature | ` discli listen ` (Levels 1-2) | ` discli serve ` (Levels 3-5) |
811811| ---------| ------------------------------| ------------------------------|
812812| Connection | New connection per action | Single persistent connection |
813- | Latency | 2-3s per action | < 100ms per action |
813+ | Latency | 2-3s per action | Under 100ms per action |
814814| Streaming | Not possible | Full support |
815815| Threads | Can create (via CLI) | Can create and manage |
816816| Typing indicator | Not practical | Full support |
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ This is handled internally by discli serve -- you do not need to worry about it.
550550Launch ` discli serve ` as a subprocess with stdin/stdout pipes.
551551</Step >
552552<Step title = " Ready" >
553- Wait for the ` { "event": "ready"} ` event on stdout. The bot is now connected to Discord.
553+ Wait for the ` { "event": "ready"} ` event on stdout. The bot is now connected to Discord.
554554</Step >
555555<Step title = " Operate" >
556556Read events from stdout. Send actions to stdin. Use ` req_id ` to correlate responses.
Original file line number Diff line number Diff line change @@ -309,8 +309,8 @@ discli catches `HTTPException` on edits silently. If Discord is temporarily unav
309309| ----------| ---------------|
310310| LLM generates faster than 1.5s flush | Normal. Chunks batch, user sees smooth updates. |
311311| LLM generates slower than 1.5s per token | User sees occasional jumps. Consider buffering a few tokens before sending as a chunk. |
312- | Very short response (< 10 tokens) | Streaming adds overhead for minimal benefit. Consider a direct ` reply ` instead. |
313- | Very long response (> 2000 chars) | Handled automatically. Overflow goes to follow-up messages. |
312+ | Very short response (under 10 tokens) | Streaming adds overhead for minimal benefit. Consider a direct ` reply ` instead. |
313+ | Very long response (over 2000 chars) | Handled automatically. Overflow goes to follow-up messages. |
314314
315315## Next Steps
316316
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ Answers can also be objects with emoji:
506506| -------| ----------| ------| -------------|
507507| ` channel_id ` | yes | string | Channel ID |
508508| ` question ` | yes | string | Poll question |
509- | ` answers ` | yes | array | List of answer strings or ` { "text": "...", "emoji": "..."} ` objects (min 2) |
509+ | ` answers ` | yes | array | List of answer strings or ` { "text": "...", "emoji": "..."} ` objects (min 2) |
510510| ` duration_hours ` | no | integer | Duration in hours (default: 24) |
511511| ` multiple ` | no | boolean | Allow multiple selections (default: false) |
512512| ` content ` | no | string | Optional message text alongside the poll |
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ Emitted when a message is sent in a visible channel. Bot messages from other bot
8585| ` message_id ` | string | Message snowflake ID |
8686| ` mentions_bot ` | boolean | Whether the message @-mentions the bot |
8787| ` is_dm ` | boolean | Whether this is a direct message |
88- | ` attachments ` | array | List of ` { "filename", "url", "size"} ` objects |
88+ | ` attachments ` | array | List of ` { "filename", "url", "size"} ` objects |
8989| ` reply_to ` | string \| null | Message ID this is a reply to, or ` null ` |
9090
9191---
You can’t perform that action at this time.
0 commit comments