max1mde / code-compile-bot

A discord bot which can compile and run java code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React bStats

Java compiler bot

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.

image

Commands

  • /tutorial
    • Shows how to use the bot

Dependencies

Installation

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)

Whitelist users

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)

About

A discord bot which can compile and run java code

License:GNU General Public License v3.0


Languages

Language:TypeScript 100.0%