From a513b914d4508949600feaf7ea7584afdc91831a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Apr 2022 10:41:03 -0700 Subject: [PATCH] Large import cleanup --- src/main/java/moe/oko/Kiafumi/Kiafumi.java | 12 ------------ .../java/moe/oko/Kiafumi/command/CommandClass.java | 1 - .../moe/oko/Kiafumi/command/CommandRegistrar.java | 2 -- .../moe/oko/Kiafumi/command/image/AvatarCommand.java | 2 -- .../moe/oko/Kiafumi/command/music/MusicCommand.java | 6 ------ .../moe/oko/Kiafumi/command/utility/PingCommand.java | 1 - 6 files changed, 24 deletions(-) diff --git a/src/main/java/moe/oko/Kiafumi/Kiafumi.java b/src/main/java/moe/oko/Kiafumi/Kiafumi.java index f9549ba..3a7a657 100644 --- a/src/main/java/moe/oko/Kiafumi/Kiafumi.java +++ b/src/main/java/moe/oko/Kiafumi/Kiafumi.java @@ -1,17 +1,6 @@ package moe.oko.Kiafumi; import moe.oko.Kiafumi.command.*; -import moe.oko.Kiafumi.command.fun.SeptemberDateCommand; -import moe.oko.Kiafumi.command.image.AvatarCommand; -import moe.oko.Kiafumi.command.image.CatCommand; -import moe.oko.Kiafumi.command.fun.DreidelCommand; -import moe.oko.Kiafumi.command.fun.FightCommand; -import moe.oko.Kiafumi.command.moderation.ModCommand; -import moe.oko.Kiafumi.command.music.MusicCommand; -import moe.oko.Kiafumi.command.utility.DuckCommand; -import moe.oko.Kiafumi.command.utility.InviteCommand; -import moe.oko.Kiafumi.command.utility.PingCommand; -import moe.oko.Kiafumi.command.utility.SettingCommand; import moe.oko.Kiafumi.listener.MainListener; import moe.oko.Kiafumi.model.KiafumiDB; import moe.oko.Kiafumi.model.ServerManager; @@ -38,7 +27,6 @@ import java.io.FileNotFoundException; import java.io.InputStream; import java.nio.file.Files; import java.time.ZonedDateTime; -import java.util.ArrayList; import java.util.List; /** diff --git a/src/main/java/moe/oko/Kiafumi/command/CommandClass.java b/src/main/java/moe/oko/Kiafumi/command/CommandClass.java index ec2d633..7cfff12 100644 --- a/src/main/java/moe/oko/Kiafumi/command/CommandClass.java +++ b/src/main/java/moe/oko/Kiafumi/command/CommandClass.java @@ -1,6 +1,5 @@ package moe.oko.Kiafumi.command; -import moe.oko.Kiafumi.Kiafumi; import moe.oko.Kiafumi.util.CommandInfo; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; diff --git a/src/main/java/moe/oko/Kiafumi/command/CommandRegistrar.java b/src/main/java/moe/oko/Kiafumi/command/CommandRegistrar.java index b6b1957..fc8a031 100644 --- a/src/main/java/moe/oko/Kiafumi/command/CommandRegistrar.java +++ b/src/main/java/moe/oko/Kiafumi/command/CommandRegistrar.java @@ -2,11 +2,9 @@ package moe.oko.Kiafumi.command; import com.google.common.reflect.ClassPath; -import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.stream.Collectors; diff --git a/src/main/java/moe/oko/Kiafumi/command/image/AvatarCommand.java b/src/main/java/moe/oko/Kiafumi/command/image/AvatarCommand.java index 226f811..98da3e4 100644 --- a/src/main/java/moe/oko/Kiafumi/command/image/AvatarCommand.java +++ b/src/main/java/moe/oko/Kiafumi/command/image/AvatarCommand.java @@ -1,6 +1,5 @@ package moe.oko.Kiafumi.command.image; -import moe.oko.Kiafumi.Kiafumi; import moe.oko.Kiafumi.command.CommandClass; import moe.oko.Kiafumi.util.CommandInfo; import moe.oko.Kiafumi.util.CommandType; @@ -12,7 +11,6 @@ import net.dv8tion.jda.api.interactions.commands.OptionType; import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.List; -import java.util.Locale; public class AvatarCommand extends CommandClass { @Override diff --git a/src/main/java/moe/oko/Kiafumi/command/music/MusicCommand.java b/src/main/java/moe/oko/Kiafumi/command/music/MusicCommand.java index b972199..0850d99 100644 --- a/src/main/java/moe/oko/Kiafumi/command/music/MusicCommand.java +++ b/src/main/java/moe/oko/Kiafumi/command/music/MusicCommand.java @@ -20,19 +20,13 @@ import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Member; -import net.dv8tion.jda.api.entities.Message; -import net.dv8tion.jda.api.entities.TextChannel; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.interactions.InteractionHook; import net.dv8tion.jda.api.interactions.commands.OptionType; import org.apache.commons.io.FileUtils; -import java.awt.*; import java.io.File; import java.io.IOException; -import java.net.URI; -import java.net.URL; -import java.security.Permissions; import java.util.*; import java.util.List; diff --git a/src/main/java/moe/oko/Kiafumi/command/utility/PingCommand.java b/src/main/java/moe/oko/Kiafumi/command/utility/PingCommand.java index ef46d4f..494417e 100644 --- a/src/main/java/moe/oko/Kiafumi/command/utility/PingCommand.java +++ b/src/main/java/moe/oko/Kiafumi/command/utility/PingCommand.java @@ -7,7 +7,6 @@ import moe.oko.Kiafumi.util.CommandType; import moe.oko.Kiafumi.util.EmbedUI; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; -import net.dv8tion.jda.api.events.message.MessageReceivedEvent; import java.time.ZonedDateTime; import java.util.ArrayList;