New! The Potato Stock Exchange is open. Get in early! New! Try the new dashboard!

#eval

Evaluate JavaScript

Bot staff only

Run JavaScript code and return the result

Usage

#eval <code>

<angle brackets> are required [square brackets] are optional

Arguments

  • code Required Text, the rest of the message

    The JavaScript code to run, or a URL to fetch the code from

Examples 1

Run a JavaScript expression

GaslightingGiraffe116:#eval 1 + 1
PotatBotat:2