diff --git a/src/main/kotlin/main/main/Config.kt b/src/main/kotlin/main/main/Config.kt index cf7b207c..e2206afe 100644 --- a/src/main/kotlin/main/main/Config.kt +++ b/src/main/kotlin/main/main/Config.kt @@ -6,7 +6,6 @@ import main.constants.ENV import main.utils.GeneralUtils import main.utils.lavalink.LavaNode import org.json.JSONObject -import org.slf4j.LoggerFactory import java.awt.Color import java.io.File import java.io.IOException diff --git a/src/main/kotlin/main/main/Listener.kt b/src/main/kotlin/main/main/Listener.kt index 13118c2a..78c20873 100644 --- a/src/main/kotlin/main/main/Listener.kt +++ b/src/main/kotlin/main/main/Listener.kt @@ -2,7 +2,6 @@ package main.main import dev.minn.jda.ktx.coroutines.await import dev.minn.jda.ktx.messages.send -import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking import main.audiohandlers.RobertifyAudioManager import main.events.AbstractEventController @@ -11,10 +10,6 @@ import main.utils.RobertifyEmbedUtils import main.utils.component.interactions.slashcommand.AbstractSlashCommand import main.utils.database.mongodb.cache.BotDBCache import main.utils.json.guildconfig.GuildConfig -import main.utils.json.locale.LocaleConfig -import main.utils.json.reminders.RemindersConfig -import main.utils.json.requestchannel.RequestChannelConfig -import main.utils.locale.LocaleManager import main.utils.locale.messages.UnbanMessages import net.dv8tion.jda.api.entities.Guild import net.dv8tion.jda.api.entities.User @@ -24,10 +19,8 @@ import net.dv8tion.jda.api.events.guild.GuildReadyEvent import net.dv8tion.jda.api.exceptions.ErrorHandler import net.dv8tion.jda.api.requests.ErrorResponse import org.slf4j.LoggerFactory -import org.yaml.snakeyaml.reader.ReaderException import java.util.concurrent.Executors import java.util.concurrent.TimeUnit -import kotlin.math.log class Listener : AbstractEventController() { @@ -110,7 +103,7 @@ class Listener : AbstractEventController() { ) ).queue(null) { ErrorHandler().handle(ErrorResponse.CANNOT_SEND_TO_USER) { - logger.warn("Was not able to send an unban message to ${user.asTag} (${user.idLong})") + logger.warn("Was not able to send an unban message to ${user.name} (${user.idLong})") } } }