Skip to content

$eval

$eval will execute given aoi.js code.

Usage

$eval[code;returnCode?;sendMessage?;returnExecution?;returnID?]

Parameters

FieldTypeDescriptionRequired
codestringAoi.js code to execute.true
returnCode?booleanReturn code.
1. true
2. false (default)
false
sendMessage?booleanSend output.
1. true
2. false (default)
false
returnExecution?booleanReturn more information about the executed code.
1. true
2. false (default)
false
returnID?booleanReturn message ID,
1. true
2. false (default)
false

Example(s)

This will return your user ID:

1
client.command({
2
name: "eval",
3
code: `
4
\`\`\`
5
$eval[$authorID;true;true;true;true]
6
\`\`\`
7
`
8
});