Wrote /root/JavaX-Caches/tmp_907970495/main.java - 7278 bytes (written=7278, should be 7278) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_2055277241 /root/JavaX-Caches/tmp_907970495/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_907970495/main.java:1: error: class, interface, or enum expected sS botUserName = "electron"; ^ /root/JavaX-Caches/tmp_907970495/main.java:2: error: class, interface, or enum expected sS logFile = "slack.log"; ^ /root/JavaX-Caches/tmp_907970495/main.java:4: error: class, interface, or enum expected static new ThreadLocal<Bool> dedicated; ^ /root/JavaX-Caches/tmp_907970495/main.java:5: error: class, interface, or enum expected static new ThreadLocal<Channel> channel; ^ /root/JavaX-Caches/tmp_907970495/main.java:6: error: class, interface, or enum expected static new ThreadLocal<S> slackUserName; ^ /root/JavaX-Caches/tmp_907970495/main.java:8: error: class, interface, or enum expected static int maxAnswerLength = 1000, shortenTo = 200; ^ /root/JavaX-Caches/tmp_907970495/main.java:10: error: class, interface, or enum expected sbool actuallyPost = true; ^ /root/JavaX-Caches/tmp_907970495/main.java:11: error: class, interface, or enum expected static int slackSpeed = 5000, slackTimeout = 20000; ^ /root/JavaX-Caches/tmp_907970495/main.java:13: error: class, interface, or enum expected static int historySuckSize = 1; ^ /root/JavaX-Caches/tmp_907970495/main.java:14: error: class, interface, or enum expected sbool checkReactions = false; ^ /root/JavaX-Caches/tmp_907970495/main.java:16: error: class, interface, or enum expected static new L actionsAfterPost; ^ /root/JavaX-Caches/tmp_907970495/main.java:18: error: class, interface, or enum expected static new L<Channel> channels; ^ /root/JavaX-Caches/tmp_907970495/main.java:27: error: illegal start of type new Map<S, Map> userInfos; ^ /root/JavaX-Caches/tmp_907970495/main.java:65: error: not a statement pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_907970495/main.java:65: error: ';' expected pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_907970495/main.java:67: error: not a statement pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_907970495/main.java:67: error: ';' expected pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_907970495/main.java:66: error: 'else' without 'if' else ^ /root/JavaX-Caches/tmp_907970495/main.java:78: error: '(' expected } catch e { ^ /root/JavaX-Caches/tmp_907970495/main.java:78: error: <identifier> expected } catch e { ^ /root/JavaX-Caches/tmp_907970495/main.java:110: error: not a statement if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_907970495/main.java:110: error: ';' expected if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_907970495/main.java:112: error: not a statement if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_907970495/main.java:112: error: ';' expected if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_907970495/main.java:121: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_907970495/main.java:121: error: not a statement ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_907970495/main.java:121: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_907970495/main.java:178: error: class, interface, or enum expected static boolean slackBot_inited; ^ /root/JavaX-Caches/tmp_907970495/main.java:180: error: class, interface, or enum expected static void initSlackBot() { ^ /root/JavaX-Caches/tmp_907970495/main.java:182: error: class, interface, or enum expected slackBot_inited = true; ^ /root/JavaX-Caches/tmp_907970495/main.java:184: error: class, interface, or enum expected Channel c; ^ /root/JavaX-Caches/tmp_907970495/main.java:186: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_907970495/main.java:187: error: class, interface, or enum expected c.channelName = "xwired, #allgemein"; ^ /root/JavaX-Caches/tmp_907970495/main.java:188: error: class, interface, or enum expected c.channelID = "C9FAC6EAE"; ^ /root/JavaX-Caches/tmp_907970495/main.java:189: error: class, interface, or enum expected c.token = electronToken(); ^ /root/JavaX-Caches/tmp_907970495/main.java:190: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_907970495/main.java:191: error: class, interface, or enum expected c.dedicated = false; ^ /root/JavaX-Caches/tmp_907970495/main.java:192: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_907970495/main.java:193: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:196: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_907970495/main.java:196: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_907970495/main.java:198: error: class, interface, or enum expected ret -1; ^ /root/JavaX-Caches/tmp_907970495/main.java:199: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:203: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:207: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_907970495/main.java:209: error: class, interface, or enum expected while licensed { ^ /root/JavaX-Caches/tmp_907970495/main.java:211: error: class, interface, or enum expected for (Channel c : channels) pcall { ^ /root/JavaX-Caches/tmp_907970495/main.java:213: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:215: error: class, interface, or enum expected if (now() > lastPrinted + 60*1000) { ^ /root/JavaX-Caches/tmp_907970495/main.java:217: error: class, interface, or enum expected print("Slack loop still going. " + unixTime()); ^ /root/JavaX-Caches/tmp_907970495/main.java:218: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:222: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:229: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_907970495/main.java:234: error: class, interface, or enum expected } ^ 54 errors