/AuroraScriptEvaluator

JavaScriptのコードを実行することができます。 (しかし、`require`や`process`、`setTimeout`やdiscord.jsのモジュールなどは使用できません。)

Primary LanguageTypeScriptMIT LicenseMIT

AuroraScriptEvaluator

JavaScriptのコードを実行することができます。 (しかし、requireprocesssetTimeoutやdiscord.jsのモジュールなどは使用できません。)

Botを導入する

インストール

Replitではそのまま使用することが(たぶん)できます。
他の環境では、index.tsworker.tsをコンパイルした後にindex.jsを実行してください。

使用方法

^eval const arr = ["apple", "orange", "grape"];
arr[Math.floor(Math.random() * arr.length)]

appleorangegrapeが返ってきます。 test image

もしくは、コードブロックで囲むことができます。

^eval ```js
const arr = ["apple", "orange", "grape"];
arr[Math.floor(Math.random() * arr.length)]
```

test image