Wrote /root/JavaX-Caches/tmp_830304337/main.java - 8976 bytes (written=8976, should be 8976) 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_188245779 /root/JavaX-Caches/tmp_830304337/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_830304337/main.java:1: error: class, interface, or enum expected static int slackSpeed = 500, slackTimeout = 20000; ^ /root/JavaX-Caches/tmp_830304337/main.java:3: error: class, interface, or enum expected static int historySuckSize = 10; ^ /root/JavaX-Caches/tmp_830304337/main.java:5: error: class, interface, or enum expected static L<S> attnPrefixes = litlist("!" /*, "eleutheria", "eleu"*/); ^ /root/JavaX-Caches/tmp_830304337/main.java:7: error: class, interface, or enum expected static new L<Channel> channels; ^ /root/JavaX-Caches/tmp_830304337/main.java:16: error: illegal start of type new Map<S, Map> userInfos; ^ /root/JavaX-Caches/tmp_830304337/main.java:52: error: not a statement pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_830304337/main.java:52: error: ';' expected pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_830304337/main.java:54: error: not a statement pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_830304337/main.java:54: error: ';' expected pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_830304337/main.java:53: error: 'else' without 'if' else ^ /root/JavaX-Caches/tmp_830304337/main.java:59: error: not a statement pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:59: error: ';' expected pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:71: error: not a statement pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:71: error: ';' expected pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:107: error: not a statement if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_830304337/main.java:107: error: ';' expected if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_830304337/main.java:109: error: not a statement if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:109: error: ';' expected if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_830304337/main.java:118: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_830304337/main.java:118: error: not a statement ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_830304337/main.java:118: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_830304337/main.java:175: error: class, interface, or enum expected static boolean slackBot_inited; ^ /root/JavaX-Caches/tmp_830304337/main.java:177: error: class, interface, or enum expected static void initSlackBot() { ^ /root/JavaX-Caches/tmp_830304337/main.java:179: error: class, interface, or enum expected slackBot_inited = true; ^ /root/JavaX-Caches/tmp_830304337/main.java:182: error: class, interface, or enum expected S nlbotsToken = loadSecretTextFile("#1001925", "nlbots-slack-token").trim(); ^ /root/JavaX-Caches/tmp_830304337/main.java:183: error: class, interface, or enum expected S eleuToken = loadSecretTextFile("#1001925", "eleu-slack-token").trim(); ^ /root/JavaX-Caches/tmp_830304337/main.java:184: error: class, interface, or enum expected S devchattesttoken = loadSecretTextFile("#1001925", "devchat-test-token").trim(); ^ /root/JavaX-Caches/tmp_830304337/main.java:186: error: class, interface, or enum expected Channel c; ^ /root/JavaX-Caches/tmp_830304337/main.java:232: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_830304337/main.java:233: error: class, interface, or enum expected c.channelName = "nlbots, #general"; ^ /root/JavaX-Caches/tmp_830304337/main.java:234: error: class, interface, or enum expected c.channelID = "C0FHTG6SY"; // nlbots, #general ^ /root/JavaX-Caches/tmp_830304337/main.java:235: error: class, interface, or enum expected c.token = nlbotsToken; ^ /root/JavaX-Caches/tmp_830304337/main.java:236: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_830304337/main.java:250: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_830304337/main.java:251: error: class, interface, or enum expected c.channelName = "devchat-test, #general"; ^ /root/JavaX-Caches/tmp_830304337/main.java:252: error: class, interface, or enum expected c.channelID = "C0QK003PV"; ^ /root/JavaX-Caches/tmp_830304337/main.java:253: error: class, interface, or enum expected c.token = devchattesttoken; ^ /root/JavaX-Caches/tmp_830304337/main.java:254: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_830304337/main.java:255: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_830304337/main.java:256: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:259: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_830304337/main.java:259: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_830304337/main.java:261: error: class, interface, or enum expected ret -1; ^ /root/JavaX-Caches/tmp_830304337/main.java:262: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:266: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:270: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_830304337/main.java:272: error: class, interface, or enum expected while true { ^ /root/JavaX-Caches/tmp_830304337/main.java:275: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:277: error: class, interface, or enum expected if (now() > lastPrinted + 60*1000) { ^ /root/JavaX-Caches/tmp_830304337/main.java:279: error: class, interface, or enum expected print("Slack loop still going. " + unixTime()); ^ /root/JavaX-Caches/tmp_830304337/main.java:280: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:284: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:291: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_830304337/main.java:296: error: class, interface, or enum expected } ^ 54 errors