Arbitrary code execution Discord bot
|
|
||
|---|---|---|
| docker | ||
| src | ||
| .eslintrc.json | ||
| .gitattributes | ||
| .gitignore | ||
| config.example.json | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Comp_iler
Sandboxed code execution discord bot.
Usage
Code Blocks
>```lang
code
```
>options```lang
code
```
Inline Code
>`lang code`
>options`lang code`
Examples
>```cpp
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
}
```
>harmony```js
class Foo {
bar = 1;
}
console.log(new Foo().bar);
```
>`py print('hello world')`
>e`hs (+) <$> Just 1 <*> Just 2`
Supported Languages and Options
One of the following language codes is set in lang.
Options are optionally set in options, which is a semicolon-delimited list of flag or flag=value.
bashBash (Bash 5.0.2)cC (GCC 8.2.0)cljClojure (Clojure 1.10)cppC++ (G++ 8.2.0)csC# (Mono 5.18.0)eevaluates a single expression instead of a module
elixirElixir (Elixir 1.8.1)fsF# (FSharp 4.5)goGo (Go 1.12)hsHaskell (GHC 8.4.3)eevaluates a single expression instead of a module
javaJava (OpenJDK 13)jsJavaScript (Node 11.11.0)harmonyenables harmony features (--harmonyon node)eprints the result of evaluating the code
juliaJulia (Julia 1.1.0)eprints the result of evaluating the code
lispRacket (Racket 7.2)luaLua (Lua 5.3)ocamlOCaml (OCaml 4.0.6)pasPascal (FPC 3.0.4)phpPHP (PHP 7.3.3)plPerl (Perl 5.28.1)prologProlog (SWI-Prolog 8.1.2)pyPython (CPython 3.7.2, CPython 2.7.16)2runs Python 2 instead of Python 3
rbRuby (Ruby 2.6.2)rsRust (Rust 1.33.0)