Wrote /root/JavaX-Caches/tmp_530577089/main.java - 10955 bytes (written=10955, should be 10955)
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_223081546 /root/JavaX-Caches/tmp_530577089/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_530577089/main.java:7: error: class, interface, or enum expected
switchable S discordToken;
^
/root/JavaX-Caches/tmp_530577089/main.java:8: error: class, interface, or enum expected
S discordBotName;
^
/root/JavaX-Caches/tmp_530577089/main.java:9: error: class, interface, or enum expected
long discordBotID;
^
/root/JavaX-Caches/tmp_530577089/main.java:10: error: class, interface, or enum expected
bool reactToBots = true;
^
/root/JavaX-Caches/tmp_530577089/main.java:11: error: class, interface, or enum expected
transient bool sendToPostedLinesCRUD = true;
^
/root/JavaX-Caches/tmp_530577089/main.java:13: error: class, interface, or enum expected
transient JDA discord;
^
/root/JavaX-Caches/tmp_530577089/main.java:14: error: class, interface, or enum expected
transient Color discordImageEmbedMysteriousLineColor = colorFromHex("36393f");
^
/root/JavaX-Caches/tmp_530577089/main.java:15: error: class, interface, or enum expected
transient L> onPostedInChannel = syncList();
^
/root/JavaX-Caches/tmp_530577089/main.java:19: error: class, interface, or enum expected
transient Consumer onQueueError = error -> {
^
/root/JavaX-Caches/tmp_530577089/main.java:21: error: class, interface, or enum expected
printStackTrace(error);
^
/root/JavaX-Caches/tmp_530577089/main.java:22: error: class, interface, or enum expected
};
^
/root/JavaX-Caches/tmp_530577089/main.java:24: error: class, interface, or enum expected
void startDiscord {
^
/root/JavaX-Caches/tmp_530577089/main.java:27: error: class, interface, or enum expected
vm_cleanPrints(); // avoid Swing Unicode problem
^
/root/JavaX-Caches/tmp_530577089/main.java:28: error: class, interface, or enum expected
logModuleOutput(); // good idea for chat bots
^
/root/JavaX-Caches/tmp_530577089/main.java:31: error: class, interface, or enum expected
discord = discordBot(new ListenerAdapter {
^
/root/JavaX-Caches/tmp_530577089/main.java:33: error: class, interface, or enum expected
public void onMessageUpdate(MessageUpdateEvent e) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:35: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:37: error: class, interface, or enum expected
Message msg = e.getMessage();
^
/root/JavaX-Caches/tmp_530577089/main.java:38: error: class, interface, or enum expected
long msgID = msg.getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:39: error: class, interface, or enum expected
User user = e.getAuthor();
^
/root/JavaX-Caches/tmp_530577089/main.java:40: error: class, interface, or enum expected
long userID = user == null ? 0 : user.getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:41: error: class, interface, or enum expected
S content = e.getMessage().getContentRaw();
^
/root/JavaX-Caches/tmp_530577089/main.java:42: error: class, interface, or enum expected
MessageChannel channel = e.getChannel();
^
/root/JavaX-Caches/tmp_530577089/main.java:43: error: class, interface, or enum expected
long channelID = channel.getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:44: error: class, interface, or enum expected
S rendered = msgID + ": " + content;
^
/root/JavaX-Caches/tmp_530577089/main.java:47: error: class, interface, or enum expected
vmBus_send editedDiscordMessage(
^
/root/JavaX-Caches/tmp_530577089/main.java:51: error: class, interface, or enum expected
O lineConcept = dm_discord_lineForMsgID_unimported(msgID);
^
/root/JavaX-Caches/tmp_530577089/main.java:52: error: class, interface, or enum expected
if (lineConcept == null) ret; // logging module not enabled
^
/root/JavaX-Caches/tmp_530577089/main.java:53: error: class, interface, or enum expected
call(lineConcept, '_setField, editedText := content);
^
/root/JavaX-Caches/tmp_530577089/main.java:53: error: unclosed character literal
call(lineConcept, '_setField, editedText := content);
^
/root/JavaX-Caches/tmp_530577089/main.java:54: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:57: error: class, interface, or enum expected
public void onMessageReceived(MessageReceivedEvent e) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:59: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:62: error: class, interface, or enum expected
vmBus_send discord_onMessageReceived(module(), e);
^
/root/JavaX-Caches/tmp_530577089/main.java:64: error: class, interface, or enum expected
User user = e.getAuthor();
^
/root/JavaX-Caches/tmp_530577089/main.java:65: error: class, interface, or enum expected
if (!reactToUser(user)) ret with print("Not reacting to user " + user);
^
/root/JavaX-Caches/tmp_530577089/main.java:66: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_530577089/main.java:68: error: class, interface, or enum expected
long msgID = e.getMessage().getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:69: error: class, interface, or enum expected
long userID = user.getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:70: error: class, interface, or enum expected
Guild guild = e.getGuild();
^
/root/JavaX-Caches/tmp_530577089/main.java:71: error: class, interface, or enum expected
long guildID = toLong(call(guild, 'getIdLong);
^
/root/JavaX-Caches/tmp_530577089/main.java:71: error: unclosed character literal
long guildID = toLong(call(guild, 'getIdLong);
^
/root/JavaX-Caches/tmp_530577089/main.java:72: error: class, interface, or enum expected
Member member = e.getMember();
^
/root/JavaX-Caches/tmp_530577089/main.java:73: error: class, interface, or enum expected
S userName = member == null ? null : member.getNickname(); // the changeable nick name - null sometimes?
^
/root/JavaX-Caches/tmp_530577089/main.java:74: error: class, interface, or enum expected
if (userName == null && member != null) userName = member.getEffectiveName();
^
/root/JavaX-Caches/tmp_530577089/main.java:75: error: class, interface, or enum expected
if (userName == null) userName = e.getAuthor().getName();
^
/root/JavaX-Caches/tmp_530577089/main.java:77: error: class, interface, or enum expected
final Message msg = e.getMessage();
^
/root/JavaX-Caches/tmp_530577089/main.java:79: error: class, interface, or enum expected
MessageChannel channel = e.getChannel();
^
/root/JavaX-Caches/tmp_530577089/main.java:80: error: class, interface, or enum expected
long channelID = channel.getIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:82: error: class, interface, or enum expected
bool isPrivate = e.getChannelType() == ChannelType.PRIVATE;
^
/root/JavaX-Caches/tmp_530577089/main.java:83: error: class, interface, or enum expected
S content = trim(msg.getContentRaw());
^
/root/JavaX-Caches/tmp_530577089/main.java:84: error: class, interface, or enum expected
print("Msg from " + userName + ": " + content);
^
/root/JavaX-Caches/tmp_530577089/main.java:86: error: class, interface, or enum expected
vmBus_send incomingDiscordMessage(
^
/root/JavaX-Caches/tmp_530577089/main.java:90: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:93: error: class, interface, or enum expected
public void onMessageReactionAdd(MessageReactionAddEvent e) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:95: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:96: error: class, interface, or enum expected
MessageReaction r = e.getReaction();
^
/root/JavaX-Caches/tmp_530577089/main.java:98: error: class, interface, or enum expected
User user = e.getUser();
^
/root/JavaX-Caches/tmp_530577089/main.java:99: error: class, interface, or enum expected
if (!reactToUser(user)) ret;
^
/root/JavaX-Caches/tmp_530577089/main.java:100: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_530577089/main.java:102: error: class, interface, or enum expected
long msgID = r.getMessageIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:103: error: class, interface, or enum expected
S emoji = r.getReactionEmote().getName();
^
/root/JavaX-Caches/tmp_530577089/main.java:105: error: class, interface, or enum expected
vmBus_send('incomingDiscordReaction, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:105: error: unclosed character literal
vmBus_send('incomingDiscordReaction, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:113: error: class, interface, or enum expected
public void onMessageReactionRemove(MessageReactionRemoveEvent e) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:115: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:116: error: class, interface, or enum expected
MessageReaction r = e.getReaction();
^
/root/JavaX-Caches/tmp_530577089/main.java:118: error: class, interface, or enum expected
User user = e.getUser();
^
/root/JavaX-Caches/tmp_530577089/main.java:119: error: class, interface, or enum expected
if (!reactToUser(user)) ret;
^
/root/JavaX-Caches/tmp_530577089/main.java:120: error: class, interface, or enum expected
bool bot = user.isBot();
^
/root/JavaX-Caches/tmp_530577089/main.java:122: error: class, interface, or enum expected
long msgID = r.getMessageIdLong();
^
/root/JavaX-Caches/tmp_530577089/main.java:123: error: class, interface, or enum expected
S emoji = r.getReactionEmote().getName();
^
/root/JavaX-Caches/tmp_530577089/main.java:125: error: class, interface, or enum expected
vmBus_send('discordReactionRemoved, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:125: error: unclosed character literal
vmBus_send('discordReactionRemoved, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:130: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:133: error: class, interface, or enum expected
public void onMessageReactionRemoveAll(MessageReactionRemoveAllEvent e) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:135: error: class, interface, or enum expected
print("TODO: onMessageReactionRemoveAll");
^
/root/JavaX-Caches/tmp_530577089/main.java:136: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:139: error: class, interface, or enum expected
public void onGuildMemberJoin(GuildMemberJoinEvent event) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:141: error: class, interface, or enum expected
print("Got guild join");
^
/root/JavaX-Caches/tmp_530577089/main.java:142: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:144: error: class, interface, or enum expected
print("Join >> getting user ID");
^
/root/JavaX-Caches/tmp_530577089/main.java:145: error: class, interface, or enum expected
long userID = rcall_long getIdLong(rcall getUser(event.getMember()));
^
/root/JavaX-Caches/tmp_530577089/main.java:146: error: class, interface, or enum expected
print("Join >> sending");
^
/root/JavaX-Caches/tmp_530577089/main.java:147: error: class, interface, or enum expected
vmBus_send('discordGuildJoin, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:147: error: unclosed character literal
vmBus_send('discordGuildJoin, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:150: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:153: error: class, interface, or enum expected
public void onGuildMemberLeave(GuildMemberLeaveEvent event) pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:155: error: class, interface, or enum expected
print("Got guild leave");
^
/root/JavaX-Caches/tmp_530577089/main.java:156: error: class, interface, or enum expected
ret if !discordEnabled() || !licensed();
^
/root/JavaX-Caches/tmp_530577089/main.java:158: error: class, interface, or enum expected
long userID = rcall_long getIdLong(rcall getUser(event.getMember()));
^
/root/JavaX-Caches/tmp_530577089/main.java:159: error: class, interface, or enum expected
vmBus_send('discordGuildLeave, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:159: error: unclosed character literal
vmBus_send('discordGuildLeave, litmapparams(
^
/root/JavaX-Caches/tmp_530577089/main.java:162: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_530577089/main.java:165: error: class, interface, or enum expected
dm_registerAs('liveDiscordModule);
^
/root/JavaX-Caches/tmp_530577089/main.java:165: error: unclosed character literal
dm_registerAs('liveDiscordModule);
^
/root/JavaX-Caches/tmp_530577089/main.java:166: error: class, interface, or enum expected
dm_vmBus_answerToMessage activeDiscordTokens(func -> LS { ll(discordToken) });
^
/root/JavaX-Caches/tmp_530577089/main.java:167: error: class, interface, or enum expected
pcall {
^
/root/JavaX-Caches/tmp_530577089/main.java:169: error: class, interface, or enum expected
setField(discordBotID := jda_selfUserID(discord));
^
100 errors
only showing the first 100 errors, of 168 total; use -Xmaxerrs if you would like to see more