Skip to content
AI aiDecideWithCtx

$aiDecideWithCtx — Asks the AI a yes/no question about the message that triggered the command. Uses your AI credits.

Asks the AI a yes/no question about the message that triggered the command. Uses your AI credits.

Syntax

$aiDecideWithCtx[question]

Parameters

  • question (text, required) — For example Does this message contain profanity?.

Return Value

  • true or false. false when the call failed.

Usage

$aiDecideWithCtx[Does this message contain profanity?]

Important Notes

  • Receives the same message context as $aiWithCtx. Same limits and availability as $ai.

Example

$nomention
$if[$aiDecideWithCtx[Does this message contain profanity?]==true]
$deleteMessage[$channelID;$messageID]
Please keep it clean!
$endif

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.