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

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

/root/JavaX-Caches/tmp_1571821926/main.java:1: error: class, interface, or enum expected static int slackSpeed = 1000; ^ /root/JavaX-Caches/tmp_1571821926/main.java:3: error: class, interface, or enum expected static int historySuckSize = 10; ^ /root/JavaX-Caches/tmp_1571821926/main.java:5: error: class, interface, or enum expected static L<S> attnPrefixes = litlist("!", "bot"); ^ /root/JavaX-Caches/tmp_1571821926/main.java:7: error: class, interface, or enum expected static new L<Channel> channels; ^ /root/JavaX-Caches/tmp_1571821926/main.java:18: error: illegal start of type new Map<S, Map> userInfos; ^ /root/JavaX-Caches/tmp_1571821926/main.java:54: error: not a statement pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_1571821926/main.java:54: error: ';' expected pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_1571821926/main.java:56: error: not a statement pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_1571821926/main.java:56: error: ';' expected pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_1571821926/main.java:55: error: 'else' without 'if' else ^ /root/JavaX-Caches/tmp_1571821926/main.java:61: error: not a statement pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:61: error: ';' expected pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:72: error: not a statement pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:72: error: ';' expected pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:108: error: not a statement if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_1571821926/main.java:108: error: ';' expected if (userID == null) ret null; ^ /root/JavaX-Caches/tmp_1571821926/main.java:110: error: not a statement if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:110: error: ';' expected if (userInfo == null) pcall { ^ /root/JavaX-Caches/tmp_1571821926/main.java:119: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_1571821926/main.java:119: error: not a statement ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_1571821926/main.java:119: error: ';' expected ret userInfo == null ? null : (S) userInfo.get("name"); ^ /root/JavaX-Caches/tmp_1571821926/main.java:173: error: class, interface, or enum expected static void initSlackBot() { ^ /root/JavaX-Caches/tmp_1571821926/main.java:175: error: class, interface, or enum expected S devChannelToken = devChannelToken(); ^ /root/JavaX-Caches/tmp_1571821926/main.java:176: error: class, interface, or enum expected S nlbotsToken = loadSecretTextFileMandatory("#1001925", "nlbots-slack-token").trim(); ^ /root/JavaX-Caches/tmp_1571821926/main.java:178: error: class, interface, or enum expected Channel c; ^ /root/JavaX-Caches/tmp_1571821926/main.java:180: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_1571821926/main.java:181: error: class, interface, or enum expected c.channelName = "devchannel, #general"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:182: error: class, interface, or enum expected c.channelID = "C0H0Q0J3D"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:183: error: class, interface, or enum expected c.token = devChannelToken; ^ /root/JavaX-Caches/tmp_1571821926/main.java:184: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_1571821926/main.java:185: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_1571821926/main.java:187: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_1571821926/main.java:188: error: class, interface, or enum expected c.channelName = "devchannel, #talkingbots"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:189: error: class, interface, or enum expected c.channelID = "C0H0SR40J"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:190: error: class, interface, or enum expected c.token = devChannelToken; ^ /root/JavaX-Caches/tmp_1571821926/main.java:191: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_1571821926/main.java:192: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_1571821926/main.java:194: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_1571821926/main.java:195: error: class, interface, or enum expected c.channelName = "devchannel, #programming"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:196: error: class, interface, or enum expected c.channelID = "C0H0MG0F6"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:197: error: class, interface, or enum expected c.token = devChannelToken; ^ /root/JavaX-Caches/tmp_1571821926/main.java:198: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_1571821926/main.java:199: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_1571821926/main.java:201: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_1571821926/main.java:202: error: class, interface, or enum expected c.channelName = "devchannel, #c_sharp"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:203: error: class, interface, or enum expected c.channelID = "C0H0T0EQ6"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:204: error: class, interface, or enum expected c.token = devChannelToken; ^ /root/JavaX-Caches/tmp_1571821926/main.java:205: error: class, interface, or enum expected c.postAsUser = true; ^ /root/JavaX-Caches/tmp_1571821926/main.java:206: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_1571821926/main.java:208: error: class, interface, or enum expected c = new Channel; ^ /root/JavaX-Caches/tmp_1571821926/main.java:209: error: class, interface, or enum expected c.channelName = "nlbots, #general"; ^ /root/JavaX-Caches/tmp_1571821926/main.java:210: error: class, interface, or enum expected c.channelID = "C0FHTG6SY"; // nlbots, #general ^ /root/JavaX-Caches/tmp_1571821926/main.java:211: error: class, interface, or enum expected c.token = nlbotsToken; ^ /root/JavaX-Caches/tmp_1571821926/main.java:212: error: class, interface, or enum expected channels.add(c); ^ /root/JavaX-Caches/tmp_1571821926/main.java:226: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1571821926/main.java:229: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1571821926/main.java:229: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_1571821926/main.java:231: error: class, interface, or enum expected ret -1; ^ /root/JavaX-Caches/tmp_1571821926/main.java:232: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1571821926/main.java:236: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1571821926/main.java:241: error: class, interface, or enum expected while true { ^ /root/JavaX-Caches/tmp_1571821926/main.java:244: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1571821926/main.java:246: error: class, interface, or enum expected if (now() > lastPrinted + 60*1000) { ^ /root/JavaX-Caches/tmp_1571821926/main.java:248: error: class, interface, or enum expected print("Slack loop still going. " + unixTime()); ^ /root/JavaX-Caches/tmp_1571821926/main.java:249: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1571821926/main.java:253: error: class, interface, or enum expected } ^ 66 errors