Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Add code compilation #287

Open
AdityaJain1030 opened this issue Mar 2, 2021 · 0 comments
Open

Add code compilation #287

AdityaJain1030 opened this issue Mar 2, 2021 · 0 comments
Labels
enhancement New feature or request stalled Going nowhere fast

Comments

@AdityaJain1030
Copy link

Is your feature request related to a problem? Please describe.
Code compilation features would be nice to have in the bot, removes the need for other bots

Describe the solution you'd like
Something along the lines of taking the wandabox API and using it to compile code.
Describe alternatives you've considered
CompilerBot

Additional context
I've already reverse-engineered the API and you just need to send a POST request to https://wandabox.org/compile with a body in the shape

{
  "code": "stuff with code",
  "compiler": "compiler name",
  "compiler-option-raw": "",
  "stdin": "command line input",
  "options": "options to send to the compiler",
  "codes": [],
  "runtime-option-raw": ""
}

an example body for nodeJS would be

{"compiler":"nodejs-14.0.0","code":"console.log(\"Hello, Wandbox!\");","codes":[],"stdin":"","options":"","runtime-option-raw":""}
@GalaxySH GalaxySH added enhancement New feature or request stalled Going nowhere fast labels Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request stalled Going nowhere fast
Projects
None yet
Development

No branches or pull requests

2 participants