Compiler Bot Tutorial

Send code with ease. Here's a quick breakdown on how to get started.

Let's show you our most important commands.

Language image

;languages

Displays all of the languages the bot currently supports.

Compilers image

;compilers

Displays all of the compilers for a given language, be sure to specify a language!

Example:
;compilers c++

Compile image

;compile

Sends a compilation request. This command supports specification of the language, compiler, stdin, and compiler flags.

Example:
;compile c++
```
#include <iostream>

int main() {
std::cout << "Hello world!" << std::endl;
}
```

More about ;compile command


The compile command is by far our most compilcated command. Here's some examples on other ways to use it.

Use Specific Compiler

;compile gcc-9.3.0
```
#include <iostream>
int main() {
  std::cout << "Hello world!" << std::endl;
}
```

Compiler Flags

;compile c++ -O3 -Wall -Werror
```
#include <iostream>

int main() {
  std::cout << "Hello world!" << std::endl;
}
```

Add stdin (inline)

;compile c++ | test 1 2 3
```
#include <iostream>
int main() {
  std::string awd;
  std::cin >> awd;
  std::cout << awd;
}
```

Add stdin (block)

;compile c++
```
test 1
test 2
test 3
```
```
<code>
```

Large code requests

;compile c++ < https://pastebin.com/raw/PJ7BgU2R

...and that's it!