fixed print

This commit is contained in:
Nilstrieb 2021-02-07 14:31:16 +01:00
parent 13b7ce8a0c
commit b488aeef15
6 changed files with 7 additions and 12 deletions

View file

@ -13,7 +13,7 @@ public class Config {
public static final String NORMAL_PREFIX = "kil ";
public static final String L_PREFIX = "k ";
public static final String PREFIX = L_PREFIX;
public static final String PREFIX = NORMAL_PREFIX;
public static final Color DEFAULT_COLOR = new Color(229, 201, 255);

View file

@ -134,8 +134,7 @@ public class TriviaCommand extends Command {
new TriviaApproval(event, new TriviaQuestion(answers));
} else {
System.out.println(ConsoleColors.BLUE_BOLD + "[TriviaCommand.AddSection 139] Received Next Message: "
+ text + " status: " + status + ConsoleColors.RESET);
System.out.println(ConsoleColors.BLUE_BOLD + "[TriviaCommand.AddSection 139] Received Next Message. status: " + status + ConsoleColors.RESET);
answers[status] = event.getMessage().getContentRaw();
if (status >= 3) {
try {

View file

@ -30,7 +30,7 @@ import java.util.Scanner;
public class Main {
public static void main(String[] args) throws LoginException {
JDABuilder builder = JDABuilder.createDefault(Secrets.L_TOKEN);
JDABuilder builder = JDABuilder.createDefault(Secrets.TOKEN);
builder.setCompression(Compression.ZLIB);
builder.setActivity(Activity.watching("over Gon"));

View file

@ -1,6 +1,5 @@
package com.github.nilstrieb.core.command;
import com.github.nilstrieb.core.command.CommandHandler;
import com.github.nilstrieb.util.ConsoleColors;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
@ -10,8 +9,7 @@ public class CommandListener extends ListenerAdapter {
@Override
public void onMessageReceived(@NotNull MessageReceivedEvent event) {
if (!event.getAuthor().isBot()) {
System.out.println(ConsoleColors.CYAN + "[CListener 13] Received message: '" +
event.getMessage().getContentRaw() + "' by " + event.getAuthor().getAsTag() + ConsoleColors.RESET);
System.out.println(ConsoleColors.CYAN + "[CListener 13] Received message." + ConsoleColors.RESET);
CommandHandler.call(event);
}
}

View file

@ -18,8 +18,7 @@ public class ReactionEventManager {
}
public static void onReactionAdd(MessageReactionAddEvent event){
System.out.println(ConsoleColors.PURPLE + "[ReactionEventManager 21] Reaction added: " + event.getReactionEmote() +
" by " + event.getUser().getAsTag() + ConsoleColors.RESET);
System.out.println(ConsoleColors.PURPLE + "[ReactionEventManager 21] Reaction added: " + event.getReactionEmote() + ConsoleColors.RESET);
long message = event.getMessageIdLong();
ReactionListener listener = currentReactions.get(message);
if (listener != null) {
@ -28,8 +27,7 @@ public class ReactionEventManager {
}
public static void onReactionRemove(MessageReactionRemoveEvent event){
System.out.println(ConsoleColors.PURPLE + "[ReactionEventManager 31] Reaction removed: " + event.getReactionEmote() +
" by " + event.getUser().getAsTag() + ConsoleColors.RESET);
System.out.println(ConsoleColors.PURPLE + "[ReactionEventManager 31] Reaction removed: " + event.getReactionEmote() + ConsoleColors.RESET);
long message = event.getMessageIdLong();
ReactionListener listener = currentReactions.get(message);
if (listener != null) {

View file

@ -29,7 +29,7 @@ public class ChannelMessageEventManager {
//if the message is relevant
if (listeners.containsKey(id)) {
System.out.println(ConsoleColors.YELLOW + "[ChannelMsgEvtMgr 30] Message in listened channel " +
event.getTextChannel().getName() + " by " + event.getAuthor().getAsTag() + ": " + event.getMessage().getContentRaw() + ConsoleColors.RESET);
event.getTextChannel().getName() + ConsoleColors.RESET);
//notify all listeners
List<ChannelListener> list = listeners.get(id);