Arbitrary code execution Discord bot
Find a file
2019-03-15 22:13:38 -04:00
docker Add Racket 2019-03-15 22:06:49 -04:00
src Simplify runWith return 2019-03-15 22:13:38 -04:00
.eslintrc.json Initial commit 2019-03-12 05:09:46 -04:00
.gitattributes Initial commit 2019-03-12 05:09:46 -04:00
.gitignore Initial commit 2019-03-12 05:09:46 -04:00
config.example.json Change language config enable all to null 2019-03-15 20:27:05 -04:00
CONTRIBUTING.md Add CONTRIBUTING.md 2019-03-12 12:01:07 -04:00
LICENSE Initial commit 2019-03-12 05:09:46 -04:00
package-lock.json Initial commit 2019-03-12 05:09:46 -04:00
package.json Move index.js 2019-03-12 12:31:45 -04:00
README.md Add Racket 2019-03-15 22:06:49 -04:00

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.

  • bash Bash (Bash 5.0.2)
  • c C (GCC 8.2.0)
  • clj Clojure (Clojure 1.10)
  • cpp C++ (G++ 8.2.0)
  • cs C# (Mono 5.18.0)
    • e evaluates a single expression instead of a module
  • elixir Elixir (Elixir 1.8.1)
  • fs F# (FSharp 4.5)
  • go Go (Go 1.12)
  • hs Haskell (GHC 8.6.3)
    • e evaluates a single expression instead of a module
  • java Java (OpenJDK 13)
  • js JavaScript (Node 11.11.0)
    • harmony enables harmony features (--harmony on node)
    • e prints the result of evaluating the code
  • julia Julia (Julia 1.1.0)
    • e prints the result of evaluating the code
  • kotlin Kotlin (Kotlin 1.3)
  • lisp Racket (Racket 7.2)
  • lua Lua (Lua 5.3)
  • ocaml OCaml (OCaml 4.0.6)
  • pas Pascal (FPC 3.0.4)
  • php PHP (PHP 7.3.3)
  • pl Perl (Perl 5.28.1)
  • prolog Prolog (SWI-Prolog 8.1.2)
  • py Python (CPython 3.7.2, CPython 2.7.16)
    • 2 runs Python 2 instead of Python 3
  • rb Ruby (Ruby 2.6.2)
  • rs Rust (Rust 1.33.0)