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

Method execute

jnode-core/src/jnode/robot/ScriptFix.java:60–78  ·  view source on GitHub ↗
(FtnMessage fmsg)

Source from the content-addressed store, hash-verified

58 "dd.MM.yyyy HH:mm");
59
60 @Override
61 public void execute(FtnMessage fmsg) throws Exception {
62 Link link = getAndCheckLink(fmsg);
63 if (link == null) {
64 return;
65 }
66
67 // если скрипт - то фигарим скрипт
68 logger.l5(String.format("process message [%s]", fmsg.getText()));
69 String scriptContent = extractScript(fmsg.getText());
70 if (scriptContent != null){
71 logger.l5("try process script");
72 processScript(fmsg, scriptContent);
73 } else{
74 logger.l5("try process commands");
75 processCommands(fmsg);
76 }
77
78 }
79
80 private void processScript(FtnMessage fmsg, String scriptContent) {
81 String output = executeScriptWithConsole(scriptContent, false);

Callers

nothing calls this directly

Calls 7

extractScriptMethod · 0.95
processScriptMethod · 0.95
processCommandsMethod · 0.95
getAndCheckLinkMethod · 0.80
l5Method · 0.80
formatMethod · 0.80
getTextMethod · 0.65

Tested by

no test coverage detected