MCPcopy Create free account
hub / github.com/annmuor/jnode / processScript

Method processScript

jnode-core/src/jnode/robot/ScriptFix.java:80–86  ·  view source on GitHub ↗
(FtnMessage fmsg, String scriptContent)

Source from the content-addressed store, hash-verified

78 }
79
80 private void processScript(FtnMessage fmsg, String scriptContent) {
81 String output = executeScriptWithConsole(scriptContent, false);
82 logger.l5(String.format("got script output %s", output));
83 FtnTools.writeReply(fmsg,
84 MessageFormat.format("{0} exec script", getRobotName()),
85 output != null ? output : "Okay");
86 }
87
88 public static String executeScriptWithConsole(String scriptContent, boolean force) {
89 Bindings bindings = new SimpleBindings();

Callers 1

executeMethod · 0.95

Calls 5

writeReplyMethod · 0.95
getRobotNameMethod · 0.95
l5Method · 0.80
formatMethod · 0.80

Tested by

no test coverage detected