From cb3c088cde58165544239615cf6a032b0b01d75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Gilga?= Date: Thu, 6 Jun 2024 13:20:59 +0200 Subject: [PATCH] remove setting commands --- .../jwizard/core/api/AbstractSettingsCmd.kt | 22 ------------------- .../api/settings/SetAudioTextChannelCmd.kt | 21 ------------------ .../core/api/settings/SetDjRoleNameCmd.kt | 21 ------------------ .../jwizard/core/api/settings/SetLocaleCmd.kt | 21 ------------------ .../settings/SetMaxRepeatsOfSingleTrackCmd.kt | 21 ------------------ .../api/settings/SetPlayerDefaultVolumeCmd.kt | 21 ------------------ .../core/api/settings/SetSkipRatioCmd.kt | 21 ------------------ .../api/settings/SetSongChooserCountCmd.kt | 21 ------------------ .../settings/SetSongChooserRandomActiveCmd.kt | 21 ------------------ .../api/settings/SetSongChooserTimeCmd.kt | 21 ------------------ .../api/settings/SetTimeToEndVotingCmd.kt | 21 ------------------ .../settings/SetTimeToLeaveEmptyChannelCmd.kt | 21 ------------------ .../SetTimeToLeaveNoTracksChannelCmd.kt | 21 ------------------ .../pl/jwizard/core/command/BotCommand.kt | 14 ------------ .../pl/jwizard/core/command/CommandModule.kt | 1 - .../pl/jwizard/core/i18n/I18nResLocale.kt | 2 -- 16 files changed, 291 deletions(-) delete mode 100644 src/main/kotlin/pl/jwizard/core/api/AbstractSettingsCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetAudioTextChannelCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetDjRoleNameCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetLocaleCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetMaxRepeatsOfSingleTrackCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetPlayerDefaultVolumeCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetSkipRatioCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserCountCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserRandomActiveCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserTimeCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToEndVotingCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveEmptyChannelCmd.kt delete mode 100644 src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveNoTracksChannelCmd.kt diff --git a/src/main/kotlin/pl/jwizard/core/api/AbstractSettingsCmd.kt b/src/main/kotlin/pl/jwizard/core/api/AbstractSettingsCmd.kt deleted file mode 100644 index fbe2d643..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/AbstractSettingsCmd.kt +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api - -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.CommandModule -import pl.jwizard.core.command.CompoundCommandEvent - -abstract class AbstractSettingsCmd( - botConfiguration: BotConfiguration, -) : AbstractManagerCmd( - botConfiguration, -) { - override fun executeManagerCmd(event: CompoundCommandEvent) { - checkIfCommandModuleIsEnabled(event, CommandModule.SETTINGS) - executeSettingsCmd(event) - } - - abstract fun executeSettingsCmd(event: CompoundCommandEvent) -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetAudioTextChannelCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetAudioTextChannelCmd.kt deleted file mode 100644 index 31f3960a..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetAudioTextChannelCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETAUDIOCHN) -class SetAudioTextChannelCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetDjRoleNameCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetDjRoleNameCmd.kt deleted file mode 100644 index 6f42fd6d..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetDjRoleNameCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETDJROLE) -class SetDjRoleNameCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetLocaleCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetLocaleCmd.kt deleted file mode 100644 index dbed025b..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetLocaleCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETLOCALE) -class SetLocaleCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetMaxRepeatsOfSingleTrackCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetMaxRepeatsOfSingleTrackCmd.kt deleted file mode 100644 index ab00eccd..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetMaxRepeatsOfSingleTrackCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETTRACKREP) -class SetMaxRepeatsOfSingleTrackCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetPlayerDefaultVolumeCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetPlayerDefaultVolumeCmd.kt deleted file mode 100644 index 8157b193..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetPlayerDefaultVolumeCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETDEFVOL) -class SetPlayerDefaultVolumeCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetSkipRatioCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetSkipRatioCmd.kt deleted file mode 100644 index b915d0f0..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetSkipRatioCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETSKRATIO) -class SetSkipRatioCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserCountCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserCountCmd.kt deleted file mode 100644 index e81d63c8..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserCountCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETCCHOSSNG) -class SetSongChooserCountCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserRandomActiveCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserRandomActiveCmd.kt deleted file mode 100644 index d8c678d5..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserRandomActiveCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETRCHOSSNG) -class SetSongChooserRandomActiveCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserTimeCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserTimeCmd.kt deleted file mode 100644 index b9e2c82f..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetSongChooserTimeCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETTCHOSSNG) -class SetSongChooserTimeCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToEndVotingCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToEndVotingCmd.kt deleted file mode 100644 index eb363790..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToEndVotingCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETTIMEVOT) -class SetTimeToEndVotingCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveEmptyChannelCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveEmptyChannelCmd.kt deleted file mode 100644 index 1e2a5daa..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveEmptyChannelCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETTLEAVEM) -class SetTimeToLeaveEmptyChannelCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveNoTracksChannelCmd.kt b/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveNoTracksChannelCmd.kt deleted file mode 100644 index 229dd4d6..00000000 --- a/src/main/kotlin/pl/jwizard/core/api/settings/SetTimeToLeaveNoTracksChannelCmd.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2024 by JWizard - * Originally developed by Miłosz Gilga - */ -package pl.jwizard.core.api.settings - -import pl.jwizard.core.api.AbstractSettingsCmd -import pl.jwizard.core.bot.BotConfiguration -import pl.jwizard.core.command.BotCommand -import pl.jwizard.core.command.CompoundCommandEvent -import pl.jwizard.core.command.reflect.CommandListenerBean - -@CommandListenerBean(id = BotCommand.SETTLEAVETR) -class SetTimeToLeaveNoTracksChannelCmd( - botConfiguration: BotConfiguration, -) : AbstractSettingsCmd( - botConfiguration -) { - override fun executeSettingsCmd(event: CompoundCommandEvent) { - } -} diff --git a/src/main/kotlin/pl/jwizard/core/command/BotCommand.kt b/src/main/kotlin/pl/jwizard/core/command/BotCommand.kt index c13703e5..7b2052c6 100644 --- a/src/main/kotlin/pl/jwizard/core/command/BotCommand.kt +++ b/src/main/kotlin/pl/jwizard/core/command/BotCommand.kt @@ -50,20 +50,6 @@ enum class BotCommand( SHOWMYPL("showmypl"), SHOWPLSONGS("showplsongs"), - // settings - SETAUDIOCHN("setaudiochn"), - SETDJROLE("setdjrole"), - SETLOCALE("setlocale"), - SETTRACKREP("settrackrep"), - SETDEFVOL("setdefvol"), - SETSKRATIO("setskratio"), - SETCCHOSSNG("setcchossng"), - SETRCHOSSNG("setrchossng"), - SETTCHOSSNG("settchossng"), - SETTIMEVOT("settimevot"), - SETTLEAVEM("settleavem"), - SETTLEAVETR("settleavetr"), - // vote VCLEAR("vclear"), VSHUFFLE("vshuffle"), diff --git a/src/main/kotlin/pl/jwizard/core/command/CommandModule.kt b/src/main/kotlin/pl/jwizard/core/command/CommandModule.kt index 363d8103..46c04d7b 100644 --- a/src/main/kotlin/pl/jwizard/core/command/CommandModule.kt +++ b/src/main/kotlin/pl/jwizard/core/command/CommandModule.kt @@ -10,7 +10,6 @@ enum class CommandModule(val moduleName: String) { MUSIC("music"), PLAYLIST("playlist"), VOTING("voting"), - SETTINGS("settings"), ; companion object { diff --git a/src/main/kotlin/pl/jwizard/core/i18n/I18nResLocale.kt b/src/main/kotlin/pl/jwizard/core/i18n/I18nResLocale.kt index 42ef3639..895e9f5d 100644 --- a/src/main/kotlin/pl/jwizard/core/i18n/I18nResLocale.kt +++ b/src/main/kotlin/pl/jwizard/core/i18n/I18nResLocale.kt @@ -52,8 +52,6 @@ enum class I18nResLocale( // playlist commands - // settings commands - // vote commands VOTE_SUFFLE_QUEUE("pl.jwizard.response.voteShuffleQueue"), SUCCESS_VOTE_SUFFLE_QUEUE("pl.jwizard.response.successVoteShuffleQueue"),