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

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

/root/JavaX-Caches/tmp_791176856/main.java:7: error: class, interface, or enum expected switchable S discordToken; ^ /root/JavaX-Caches/tmp_791176856/main.java:8: error: class, interface, or enum expected S discordBotName; ^ /root/JavaX-Caches/tmp_791176856/main.java:9: error: class, interface, or enum expected long discordBotID; ^ /root/JavaX-Caches/tmp_791176856/main.java:10: error: class, interface, or enum expected bool reactToBots = true; ^ /root/JavaX-Caches/tmp_791176856/main.java:11: error: class, interface, or enum expected transient bool sendToPostedLinesCRUD = true; ^ /root/JavaX-Caches/tmp_791176856/main.java:12: error: class, interface, or enum expected transient bool escapeAtEveryone; ^ /root/JavaX-Caches/tmp_791176856/main.java:13: error: class, interface, or enum expected transient bool membersIntent; // is members intent needed (reacting to user join/leave) ^ /root/JavaX-Caches/tmp_791176856/main.java:15: error: class, interface, or enum expected transient JDA discord; ^ /root/JavaX-Caches/tmp_791176856/main.java:16: error: class, interface, or enum expected transient Color discordImageEmbedMysteriousLineColor = colorFromHex("36393f"); ^ /root/JavaX-Caches/tmp_791176856/main.java:17: error: class, interface, or enum expected transient L<IVF2<MessageChannel, S>> onPostedInChannel = syncList(); ^ /root/JavaX-Caches/tmp_791176856/main.java:21: error: class, interface, or enum expected transient Consumer<Throwable> onQueueError = error -> { ^ /root/JavaX-Caches/tmp_791176856/main.java:23: error: class, interface, or enum expected printStackTrace(error); ^ /root/JavaX-Caches/tmp_791176856/main.java:24: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_791176856/main.java:26: error: class, interface, or enum expected void startDiscord { ^ /root/JavaX-Caches/tmp_791176856/main.java:29: error: class, interface, or enum expected vm_cleanPrints(); // avoid Swing Unicode problem ^ /root/JavaX-Caches/tmp_791176856/main.java:30: error: class, interface, or enum expected logModuleOutput(); // good idea for chat bots ^ /root/JavaX-Caches/tmp_791176856/main.java:33: error: class, interface, or enum expected discord = discordBot40(new ListenerAdapter { ^ /root/JavaX-Caches/tmp_791176856/main.java:35: error: class, interface, or enum expected public void onMessageUpdate(MessageUpdateEvent e) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:37: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:39: error: class, interface, or enum expected Message msg = e.getMessage(); ^ /root/JavaX-Caches/tmp_791176856/main.java:40: error: class, interface, or enum expected long msgID = msg.getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:41: error: class, interface, or enum expected User user = e.getAuthor(); ^ /root/JavaX-Caches/tmp_791176856/main.java:42: error: class, interface, or enum expected long userID = user == null ? 0 : user.getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:43: error: class, interface, or enum expected S content = e.getMessage().getContentRaw(); ^ /root/JavaX-Caches/tmp_791176856/main.java:44: error: class, interface, or enum expected MessageChannel channel = e.getChannel(); ^ /root/JavaX-Caches/tmp_791176856/main.java:45: error: class, interface, or enum expected long channelID = channel.getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:46: error: class, interface, or enum expected S rendered = msgID + ": " + content; ^ /root/JavaX-Caches/tmp_791176856/main.java:49: error: class, interface, or enum expected vmBus_send editedDiscordMessage( ^ /root/JavaX-Caches/tmp_791176856/main.java:53: error: class, interface, or enum expected O lineConcept = dm_discord_lineForMsgID_unimported(msgID); ^ /root/JavaX-Caches/tmp_791176856/main.java:54: error: class, interface, or enum expected if (lineConcept == null) ret; // logging module not enabled ^ /root/JavaX-Caches/tmp_791176856/main.java:55: error: class, interface, or enum expected call(lineConcept, '_setField, editedText := content); ^ /root/JavaX-Caches/tmp_791176856/main.java:55: error: unclosed character literal call(lineConcept, '_setField, editedText := content); ^ /root/JavaX-Caches/tmp_791176856/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:59: error: class, interface, or enum expected public void onMessageReceived(MessageReceivedEvent e) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:61: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:64: error: class, interface, or enum expected vmBus_send discord_onMessageReceived(module(), e); ^ /root/JavaX-Caches/tmp_791176856/main.java:66: error: class, interface, or enum expected User user = e.getAuthor(); ^ /root/JavaX-Caches/tmp_791176856/main.java:67: error: class, interface, or enum expected if (!reactToUser(user)) ret with print("Not reacting to user " + user); ^ /root/JavaX-Caches/tmp_791176856/main.java:68: error: class, interface, or enum expected bool bot = user.isBot(); ^ /root/JavaX-Caches/tmp_791176856/main.java:70: error: class, interface, or enum expected long msgID = e.getMessage().getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:71: error: class, interface, or enum expected long userID = user.getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:72: error: class, interface, or enum expected Guild guild = e.isFromType(ChannelType.TEXT) ? e.getGuild() : null; ^ /root/JavaX-Caches/tmp_791176856/main.java:73: error: class, interface, or enum expected long guildID = toLong(call(guild, 'getIdLong); ^ /root/JavaX-Caches/tmp_791176856/main.java:73: error: unclosed character literal long guildID = toLong(call(guild, 'getIdLong); ^ /root/JavaX-Caches/tmp_791176856/main.java:74: error: class, interface, or enum expected Member member = e.getMember(); ^ /root/JavaX-Caches/tmp_791176856/main.java:75: error: class, interface, or enum expected S userName = member == null ? null : member.getNickname(); // the changeable nick name - null sometimes? ^ /root/JavaX-Caches/tmp_791176856/main.java:76: error: class, interface, or enum expected if (userName == null && member != null) userName = member.getEffectiveName(); ^ /root/JavaX-Caches/tmp_791176856/main.java:77: error: class, interface, or enum expected if (userName == null) userName = e.getAuthor().getName(); ^ /root/JavaX-Caches/tmp_791176856/main.java:79: error: class, interface, or enum expected final Message msg = e.getMessage(); ^ /root/JavaX-Caches/tmp_791176856/main.java:81: error: class, interface, or enum expected MessageChannel channel = e.getChannel(); ^ /root/JavaX-Caches/tmp_791176856/main.java:82: error: class, interface, or enum expected long channelID = channel.getIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:84: error: class, interface, or enum expected bool isPrivate = e.getChannelType() == ChannelType.PRIVATE; ^ /root/JavaX-Caches/tmp_791176856/main.java:85: error: class, interface, or enum expected S content = trim(msg.getContentRaw()); ^ /root/JavaX-Caches/tmp_791176856/main.java:86: error: class, interface, or enum expected print("Msg from " + userName + ": " + content); ^ /root/JavaX-Caches/tmp_791176856/main.java:88: error: class, interface, or enum expected vmBus_send incomingDiscordMessage( ^ /root/JavaX-Caches/tmp_791176856/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:95: error: class, interface, or enum expected public void onMessageReactionAdd(MessageReactionAddEvent e) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:97: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:98: error: class, interface, or enum expected MessageReaction r = e.getReaction(); ^ /root/JavaX-Caches/tmp_791176856/main.java:100: error: class, interface, or enum expected User user = e.getUser(); ^ /root/JavaX-Caches/tmp_791176856/main.java:101: error: class, interface, or enum expected if (!reactToUser(user)) ret; ^ /root/JavaX-Caches/tmp_791176856/main.java:102: error: class, interface, or enum expected bool bot = user.isBot(); ^ /root/JavaX-Caches/tmp_791176856/main.java:104: error: class, interface, or enum expected long msgID = r.getMessageIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:105: error: class, interface, or enum expected S emoji = r.getReactionEmote().getName(); ^ /root/JavaX-Caches/tmp_791176856/main.java:107: error: class, interface, or enum expected vmBus_send('incomingDiscordReaction, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:107: error: unclosed character literal vmBus_send('incomingDiscordReaction, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:115: error: class, interface, or enum expected public void onMessageReactionRemove(MessageReactionRemoveEvent e) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:117: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:118: error: class, interface, or enum expected MessageReaction r = e.getReaction(); ^ /root/JavaX-Caches/tmp_791176856/main.java:120: error: class, interface, or enum expected User user = e.getUser(); ^ /root/JavaX-Caches/tmp_791176856/main.java:121: error: class, interface, or enum expected if (!reactToUser(user)) ret; ^ /root/JavaX-Caches/tmp_791176856/main.java:122: error: class, interface, or enum expected bool bot = user.isBot(); ^ /root/JavaX-Caches/tmp_791176856/main.java:124: error: class, interface, or enum expected long msgID = r.getMessageIdLong(); ^ /root/JavaX-Caches/tmp_791176856/main.java:125: error: class, interface, or enum expected S emoji = r.getReactionEmote().getName(); ^ /root/JavaX-Caches/tmp_791176856/main.java:127: error: class, interface, or enum expected vmBus_send('discordReactionRemoved, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:127: error: unclosed character literal vmBus_send('discordReactionRemoved, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:132: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:135: error: class, interface, or enum expected public void onMessageReactionRemoveAll(MessageReactionRemoveAllEvent e) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:137: error: class, interface, or enum expected print("TODO: onMessageReactionRemoveAll"); ^ /root/JavaX-Caches/tmp_791176856/main.java:138: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:141: error: class, interface, or enum expected public void onGuildMemberJoin(GuildMemberJoinEvent event) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:143: error: class, interface, or enum expected print("Got guild join"); ^ /root/JavaX-Caches/tmp_791176856/main.java:144: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:146: error: class, interface, or enum expected print("Join >> getting user ID"); ^ /root/JavaX-Caches/tmp_791176856/main.java:147: error: class, interface, or enum expected long userID = rcall_long getIdLong(rcall getUser(event.getMember())); ^ /root/JavaX-Caches/tmp_791176856/main.java:148: error: class, interface, or enum expected print("Join >> sending"); ^ /root/JavaX-Caches/tmp_791176856/main.java:149: error: class, interface, or enum expected vmBus_send('discordGuildJoin, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:149: error: unclosed character literal vmBus_send('discordGuildJoin, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:152: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_791176856/main.java:155: error: class, interface, or enum expected public void onGuildMemberLeave(GuildMemberLeaveEvent event) pcall { ^ /root/JavaX-Caches/tmp_791176856/main.java:157: error: class, interface, or enum expected print("Got guild leave"); ^ /root/JavaX-Caches/tmp_791176856/main.java:158: error: class, interface, or enum expected ret if !discordEnabled() || !licensed(); ^ /root/JavaX-Caches/tmp_791176856/main.java:160: error: class, interface, or enum expected long userID = rcall_long getIdLong(rcall getUser(event.getMember())); ^ /root/JavaX-Caches/tmp_791176856/main.java:161: error: class, interface, or enum expected vmBus_send('discordGuildLeave, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:161: error: unclosed character literal vmBus_send('discordGuildLeave, litmapparams( ^ /root/JavaX-Caches/tmp_791176856/main.java:164: error: class, interface, or enum expected } // end of JDA listener ^ /root/JavaX-Caches/tmp_791176856/main.java:167: error: class, interface, or enum expected dm_registerAs('liveDiscordModule); ^ /root/JavaX-Caches/tmp_791176856/main.java:167: error: unclosed character literal dm_registerAs('liveDiscordModule); ^ /root/JavaX-Caches/tmp_791176856/main.java:168: error: class, interface, or enum expected dm_vmBus_answerToMessage activeDiscordTokens(func -> LS { ll(discordToken) }); ^ 100 errors only showing the first 100 errors, of 174 total; use -Xmaxerrs if you would like to see more