v5.0.0
$eval
Eval your Code, useful for debugging.
This function evals the given Aoi.js code so you can use functions manually inside a command without creating a new command for it.
You should restrict the use of this function to yourself

Fields

This function has 1 required field
  1. 1.
    Code (Required)
  2. 2.
    Return Code (Optional)
Raw Usage: $eval[code;return code (yes/no)(optional)]

Options

  • Code - The Aoi.js code we're evaling
  • Return Code - Returns the output of the code

Usage

Without the optional fiels

1
bot.command({
2
name: "eval",
3
code: `
4
$eval[$message]
5
`
6
})
Copied!

With the optional field:

1
bot.command({
2
name: "eval",
3
code: `
4
$eval[$message;yes]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub