Wrote /root/JavaX-Caches/tmp_1714790293/main.java - 12273 bytes (written=12273, should be 12273)
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_637062624 /root/JavaX-Caches/tmp_1714790293/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1714790293/main.java:7: error: class, interface, or enum expected
switchable S discordToken;
^
/root/JavaX-Caches/tmp_1714790293/main.java:9: error: class, interface, or enum expected
S discordBotName;
^
/root/JavaX-Caches/tmp_1714790293/main.java:10: error: class, interface, or enum expected
long discordBotID;
^
/root/JavaX-Caches/tmp_1714790293/main.java:12: error: class, interface, or enum expected
bool reactToBots = true;
^
/root/JavaX-Caches/tmp_1714790293/main.java:13: error: class, interface, or enum expected
transient bool sendToPostedLinesCRUD = true;
^
/root/JavaX-Caches/tmp_1714790293/main.java:14: error: class, interface, or enum expected
transient bool escapeAtEveryone;
^
/root/JavaX-Caches/tmp_1714790293/main.java:15: error: class, interface, or enum expected
transient bool membersIntent; // is members intent needed (reacting to user join/leave)
^
/root/JavaX-Caches/tmp_1714790293/main.java:17: error: class, interface, or enum expected
transient ShardManager discord;
^
/root/JavaX-Caches/tmp_1714790293/main.java:18: error: class, interface, or enum expected
transient Color discordImageEmbedMysteriousLineColor = colorFromHex("36393f");
^
/root/JavaX-Caches/tmp_1714790293/main.java:19: error: class, interface, or enum expected
transient L> onPostedInChannel = syncList();
^
/root/JavaX-Caches/tmp_1714790293/main.java:23: error: class, interface, or enum expected
transient Consumer onQueueError = error -> {
^
/root/JavaX-Caches/tmp_1714790293/main.java:25: error: class, interface, or enum expected
printStackTrace(error);
^
/root/JavaX-Caches/tmp_1714790293/main.java:26: error: class, interface, or enum expected
};
^
/root/JavaX-Caches/tmp_1714790293/main.java:28: error: class, interface, or enum expected
void startDiscord {
^
/root/JavaX-Caches/tmp_1714790293/main.java:31: error: class, interface, or enum expected
vm_cleanPrints(); // avoid Swing Unicode problem
^
/root/JavaX-Caches/tmp_1714790293/main.java:32: error: class, interface, or enum expected
logModuleOutput(); // good idea for chat bots
^
/root/JavaX-Caches/tmp_1714790293/main.java:35: error: class, interface, or enum expected
discord = shardedDiscordBot40(new ListenerAdapter {
^
/root/JavaX-Caches/tmp_1714790293/main.java:37: error: class, interface, or enum expected
public void onMessageUpdate(MessageUpdateEvent e) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:39: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:41: error: class, interface, or enum expected
Message msg = e.getMessage();
^
/root/JavaX-Caches/tmp_1714790293/main.java:42: error: class, interface, or enum expected
long msgID = msg.getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:43: error: class, interface, or enum expected
User user = e.getAuthor();
^
/root/JavaX-Caches/tmp_1714790293/main.java:44: error: class, interface, or enum expected
long userID = user == null ? 0 : user.getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:45: error: class, interface, or enum expected
S content = e.getMessage().getContentRaw();
^
/root/JavaX-Caches/tmp_1714790293/main.java:46: error: class, interface, or enum expected
MessageChannel channel = e.getChannel();
^
/root/JavaX-Caches/tmp_1714790293/main.java:47: error: class, interface, or enum expected
long channelID = channel.getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:48: error: class, interface, or enum expected
S rendered = msgID + ": " + content;
^
/root/JavaX-Caches/tmp_1714790293/main.java:51: error: class, interface, or enum expected
vmBus_send editedDiscordMessage(
^
/root/JavaX-Caches/tmp_1714790293/main.java:55: error: class, interface, or enum expected
O lineConcept = dm_discord_lineForMsgID_unimported(msgID);
^
/root/JavaX-Caches/tmp_1714790293/main.java:56: error: class, interface, or enum expected
if (lineConcept == null) ret; // logging module not enabled
^
/root/JavaX-Caches/tmp_1714790293/main.java:57: error: class, interface, or enum expected
call(lineConcept, '_setField, editedText := content);
^
/root/JavaX-Caches/tmp_1714790293/main.java:57: error: unclosed character literal
call(lineConcept, '_setField, editedText := content);
^
/root/JavaX-Caches/tmp_1714790293/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:61: error: class, interface, or enum expected
public void onMessageReceived(MessageReceivedEvent e) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:63: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:66: error: class, interface, or enum expected
vmBus_send discord_onMessageReceived(module(), e);
^
/root/JavaX-Caches/tmp_1714790293/main.java:68: error: class, interface, or enum expected
User user = e.getAuthor();
^
/root/JavaX-Caches/tmp_1714790293/main.java:69: error: class, interface, or enum expected
if (!reactToUser(user)) ret with print("Not reacting to user " + user);
^
/root/JavaX-Caches/tmp_1714790293/main.java:70: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_1714790293/main.java:72: error: class, interface, or enum expected
long msgID = e.getMessage().getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:73: error: class, interface, or enum expected
long userID = user.getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:74: error: class, interface, or enum expected
Guild guild = e.isFromType(ChannelType.TEXT) ? e.getGuild() : null;
^
/root/JavaX-Caches/tmp_1714790293/main.java:75: error: class, interface, or enum expected
long guildID = toLong(call(guild, 'getIdLong);
^
/root/JavaX-Caches/tmp_1714790293/main.java:75: error: unclosed character literal
long guildID = toLong(call(guild, 'getIdLong);
^
/root/JavaX-Caches/tmp_1714790293/main.java:76: error: class, interface, or enum expected
Member member = e.getMember();
^
/root/JavaX-Caches/tmp_1714790293/main.java:77: error: class, interface, or enum expected
S userName = member == null ? null : member.getNickname(); // the changeable nick name - null sometimes?
^
/root/JavaX-Caches/tmp_1714790293/main.java:78: error: class, interface, or enum expected
if (userName == null && member != null) userName = member.getEffectiveName();
^
/root/JavaX-Caches/tmp_1714790293/main.java:79: error: class, interface, or enum expected
if (userName == null) userName = e.getAuthor().getName();
^
/root/JavaX-Caches/tmp_1714790293/main.java:81: error: class, interface, or enum expected
final Message msg = e.getMessage();
^
/root/JavaX-Caches/tmp_1714790293/main.java:83: error: class, interface, or enum expected
MessageChannel channel = e.getChannel();
^
/root/JavaX-Caches/tmp_1714790293/main.java:84: error: class, interface, or enum expected
long channelID = channel.getIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:86: error: class, interface, or enum expected
bool isPrivate = e.getChannelType() == ChannelType.PRIVATE;
^
/root/JavaX-Caches/tmp_1714790293/main.java:87: error: class, interface, or enum expected
S content = trim(msg.getContentRaw());
^
/root/JavaX-Caches/tmp_1714790293/main.java:90: error: class, interface, or enum expected
vmBus_send incomingDiscordMessage(
^
/root/JavaX-Caches/tmp_1714790293/main.java:94: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:97: error: class, interface, or enum expected
public void onMessageReactionAdd(MessageReactionAddEvent e) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:99: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:100: error: class, interface, or enum expected
MessageReaction r = e.getReaction();
^
/root/JavaX-Caches/tmp_1714790293/main.java:102: error: class, interface, or enum expected
User user = e.getUser();
^
/root/JavaX-Caches/tmp_1714790293/main.java:103: error: class, interface, or enum expected
if (!reactToUser(user)) ret;
^
/root/JavaX-Caches/tmp_1714790293/main.java:104: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_1714790293/main.java:106: error: class, interface, or enum expected
long msgID = r.getMessageIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:107: error: class, interface, or enum expected
S emoji = r.getReactionEmote().getName();
^
/root/JavaX-Caches/tmp_1714790293/main.java:109: error: class, interface, or enum expected
vmBus_send('incomingDiscordReaction, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:109: error: unclosed character literal
vmBus_send('incomingDiscordReaction, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:117: error: class, interface, or enum expected
public void onMessageReactionRemove(MessageReactionRemoveEvent e) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:119: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:120: error: class, interface, or enum expected
MessageReaction r = e.getReaction();
^
/root/JavaX-Caches/tmp_1714790293/main.java:122: error: class, interface, or enum expected
User user = e.getUser();
^
/root/JavaX-Caches/tmp_1714790293/main.java:123: error: class, interface, or enum expected
if (!reactToUser(user)) ret;
^
/root/JavaX-Caches/tmp_1714790293/main.java:124: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_1714790293/main.java:126: error: class, interface, or enum expected
long msgID = r.getMessageIdLong();
^
/root/JavaX-Caches/tmp_1714790293/main.java:127: error: class, interface, or enum expected
S emoji = r.getReactionEmote().getName();
^
/root/JavaX-Caches/tmp_1714790293/main.java:129: error: class, interface, or enum expected
vmBus_send('discordReactionRemoved, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:129: error: unclosed character literal
vmBus_send('discordReactionRemoved, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:134: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:137: error: class, interface, or enum expected
public void onMessageReactionRemoveAll(MessageReactionRemoveAllEvent e) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:139: error: class, interface, or enum expected
print("TODO: onMessageReactionRemoveAll");
^
/root/JavaX-Caches/tmp_1714790293/main.java:140: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:143: error: class, interface, or enum expected
public void onGuildMemberJoin(GuildMemberJoinEvent event) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:145: error: class, interface, or enum expected
print("Got guild join");
^
/root/JavaX-Caches/tmp_1714790293/main.java:146: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:148: error: class, interface, or enum expected
print("Join >> getting user ID");
^
/root/JavaX-Caches/tmp_1714790293/main.java:149: error: class, interface, or enum expected
long userID = rcall_long getIdLong(rcall getUser(event.getMember()));
^
/root/JavaX-Caches/tmp_1714790293/main.java:150: error: class, interface, or enum expected
print("Join >> sending");
^
/root/JavaX-Caches/tmp_1714790293/main.java:151: error: class, interface, or enum expected
vmBus_send('discordGuildJoin, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:151: error: unclosed character literal
vmBus_send('discordGuildJoin, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:154: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1714790293/main.java:157: error: class, interface, or enum expected
public void onGuildMemberLeave(GuildMemberLeaveEvent event) pcall {
^
/root/JavaX-Caches/tmp_1714790293/main.java:159: error: class, interface, or enum expected
print("Got guild leave");
^
/root/JavaX-Caches/tmp_1714790293/main.java:160: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_1714790293/main.java:162: error: class, interface, or enum expected
long userID = rcall_long getIdLong(rcall getUser(event.getMember()));
^
/root/JavaX-Caches/tmp_1714790293/main.java:163: error: class, interface, or enum expected
vmBus_send('discordGuildLeave, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:163: error: unclosed character literal
vmBus_send('discordGuildLeave, litmapparams(
^
/root/JavaX-Caches/tmp_1714790293/main.java:166: error: class, interface, or enum expected
} // end of JDA listener
^
/root/JavaX-Caches/tmp_1714790293/main.java:169: error: class, interface, or enum expected
dm_registerAs('liveDiscordModule);
^
/root/JavaX-Caches/tmp_1714790293/main.java:169: error: unclosed character literal
dm_registerAs('liveDiscordModule);
^
/root/JavaX-Caches/tmp_1714790293/main.java:170: error: class, interface, or enum expected
dm_vmBus_answerToMessage activeDiscordTokens(func -> LS { ll(discordToken) });
^
/root/JavaX-Caches/tmp_1714790293/main.java:172: error: class, interface, or enum expected
int safety = 0;
^
100 errors
only showing the first 100 errors, of 190 total; use -Xmaxerrs if you would like to see more