$aiWithCtx
Premium
Prompts AI with your message alongside the Discord message context (author, channel, server, mentions, attachments, reactions, and replied-to message).
Syntax
$aiWithCtx[Prompt;(System prompt;Response token limit)]
Parameters
Prompt(Type: String || Flag: Required): Prompt to the AI, for example: “Summarize the message above”.System prompt(Type: String || Flag: Optional): Additional system prompt appended after the message context.Response token limit(Type: Integer || Flag: Optional): Limit length of the response generated by AI.
Context provided to AI
The following information from the triggering Discord message is automatically included:
| Field | Description |
|---|---|
| Author | Username and user ID |
| Author nickname | Server nickname, if set |
| Channel | Channel name |
| Server | Server name |
| Timestamp | Message sent time |
| Edited at | Edit time, if the message was edited |
| Mentions everyone | Whether @everyone was used |
| Mentions | Usernames and IDs of mentioned users |
| Attachments | Filenames of attached files |
| Reactions | Emoji name and reaction count |
| Reply to | Author and content (up to 200 characters) of the replied-to message |
Example
$nomention
$aiWithCtx[$message;Be friendly and casual]
Use $ai[] if you want to supply the content manually without automatic message context.