A bot which can compile and execute java code.
The output will be displayd as a message.
Caution
It is possible that a user can bypass any filters and permissions to execute malicious code.
- /tutorial
- Shows how to use the bot
Add a token.json
file
{
"token": "YOUR_BOT_TOKEN"
}
Use the following commands to install all libraries and start the bot:
npm install
(Installs all libraries)tsc
(Converts all typescript files into javascript files and copies them into the /build folder)node build/src/index.js
(Starts the bot)
src/config.json
{
"allowedUsers": [USER_ID, USER_ID....]
}
Note
You can get the user id by right clicking on a user and selecting (Developer mode must be enabled)