I can run Code inside Discord Chats.
You can add me to your server here: https://emkc.org/run
I use https://github.com/engineer-man/piston to run code.
You can use the bot like this
/run <language>
```
<your code>
```
/run
```<language>
<your code>
```
/run <language>
```<language>
<your code>
```
/run <language>
```<your code>
```
You can edit your last /run message if you make a mistake and the bot will edit it's initial response.
Made writing rust code "snippets" easier (Thanks https://github.com/UsairimIsani)
fn main() { }
will be automatically created if it is not present in the provided code.
Made writing java code "snippets" easier (Thanks https://github.com/Minecraftian14)
When typing Java code the boilerplate code for public class
will be added automatically.
/run java
```
import java.util.List;
List.of(args).forEach(System.out::println);
```
will be interpreted as
/run java
```
import java.util.List;
public class temp extends Object {
public static void main(String[] args) {
List.of(args).forEach(System.out::println);
}
}
```
Added optional command line parameters You can use them by specifying them before the codeblock (1 per line)
Example:
/run <language>
parameter 1
parameter 2
```
<your code>
```