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
```
With options:
>[options]```lang
code
```
Inline Code
>`lang code`
With options:
>[options]`lang code`
Examples
>```hs
main :: IO ()
main = print 1
```
>[harmony]```js
class Foo {
bar = 1;
}
console.log(new Foo().bar);
```
>`py print('hello world')`
Supported Languages
One of the following languages is set in lang.
jsJavaScript (Node 10.14.2)pyPython (CPython 3.6.8, CPython 2.7.15)hsHaskell (GHC 8.4.3)pasPascal (FPC 3.0.4)goGo (Go 1.12)
Options
Options are optionally set in options, which is a semicolon-delimited list of flag or flag=value.
For JavaScript:
harmonyenables harmony features (--harmonyon node)
For Python:
2runs Python 2 instead of Python 3
For Haskell:
- None
For Pascal:
- None
For Go:
- None
Packages
Apart from the standard libraries, some other libraries come pre-installed.
For JavaScript:
- Node libraries
- lodash
- moment
- cheerio
For Python:
- numpy (Python 3 only)
For Haskell:
- GHC libraries
- aeson
- async
- attoparsec
- integer-logarithms
- megaparsec
- random
- scientific
- split
- vector
For Pascal:
- None
For Go:
- None