MCPcopy Create free account
hub / github.com/Mrandbad/ANDBAD-MD-V2 / runCode

Function runCode

Andplugins/Coding/run-java.js:9–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 const code = m.quoted.text;
8
9async function runCode() {
10 try {
11 let result = await java.runSource(code);
12 console.log(result);
13 m.reply(result.stdout);
14 m.reply(result.stderr);
15 } catch (err) {
16 console.log(err);
17 m.reply(err.stderr);
18 }
19}
20
21runCode();
22

Callers 1

run-java.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected