Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

AuroraBot-Discord/AuroraScriptEvaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks