From f1567274138ba57209fcc484899ed7c091d3dd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 20 Nov 2022 06:04:34 +0100 Subject: [PATCH] Optimize imports --- .../hidekobot/listeners/MessageListener.java | 9 +-------- .../hidekobot/listeners/SlashCommandListener.java | 15 --------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java index 2c723e4..c3da0f5 100644 --- a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java +++ b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java @@ -1,18 +1,11 @@ package wtf.beatrice.hidekobot.listeners; -import net.dv8tion.jda.api.entities.*; +import net.dv8tion.jda.api.entities.MessageChannel; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; import org.jetbrains.annotations.NotNull; import wtf.beatrice.hidekobot.Configuration; -import wtf.beatrice.hidekobot.HidekoBot; import wtf.beatrice.hidekobot.utils.Logger; -import wtf.beatrice.hidekobot.utils.RandomUtil; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; public class MessageListener extends ListenerAdapter { diff --git a/src/main/java/wtf/beatrice/hidekobot/listeners/SlashCommandListener.java b/src/main/java/wtf/beatrice/hidekobot/listeners/SlashCommandListener.java index 7d690fb..113389c 100644 --- a/src/main/java/wtf/beatrice/hidekobot/listeners/SlashCommandListener.java +++ b/src/main/java/wtf/beatrice/hidekobot/listeners/SlashCommandListener.java @@ -1,27 +1,12 @@ package wtf.beatrice.hidekobot.listeners; -import net.dv8tion.jda.api.entities.Message; -import net.dv8tion.jda.api.entities.MessageChannel; -import net.dv8tion.jda.api.entities.MessageHistory; -import net.dv8tion.jda.api.entities.TextChannel; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; -import net.dv8tion.jda.api.interactions.InteractionHook; -import net.dv8tion.jda.api.interactions.commands.OptionMapping; -import net.dv8tion.jda.api.requests.restaction.interactions.ReplyCallbackAction; import org.jetbrains.annotations.NotNull; -import wtf.beatrice.hidekobot.Configuration; -import wtf.beatrice.hidekobot.HidekoBot; import wtf.beatrice.hidekobot.slashcommands.ClearChatCommand; import wtf.beatrice.hidekobot.slashcommands.CoinFlipCommand; import wtf.beatrice.hidekobot.slashcommands.DieCommand; import wtf.beatrice.hidekobot.slashcommands.PingCommand; -import wtf.beatrice.hidekobot.utils.RandomUtil; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; public class SlashCommandListener extends ListenerAdapter {