forked from DiscordBots/lilJudd
feat: added little note at boot
fix!: fixed compilation issues on Winblows (This resulted in a new base package.) Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
d928258028
commit
ab7016cdb3
100 changed files with 259 additions and 246 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd
|
||||
package net.moonleay.liljudd
|
||||
|
||||
import com.kotlindiscord.kord.extensions.ExtensibleBot
|
||||
import com.kotlindiscord.kord.extensions.utils.dm
|
||||
|
@ -33,19 +33,19 @@ import kotlinx.coroutines.CoroutineScope
|
|||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.launch
|
||||
import net.moonleay.lilJudd.buttons.component.EditButtonManager
|
||||
import net.moonleay.lilJudd.data.CredentialManager
|
||||
import net.moonleay.lilJudd.data.NewsManager
|
||||
import net.moonleay.lilJudd.data.StacktraceSaver
|
||||
import net.moonleay.lilJudd.data.database.DB
|
||||
import net.moonleay.lilJudd.extensions.*
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.features.MatchManager
|
||||
import net.moonleay.lilJudd.features.TimeManager
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.build.BuildConstants
|
||||
import net.moonleay.liljudd.buttons.component.EditButtonManager
|
||||
import net.moonleay.liljudd.data.CredentialManager
|
||||
import net.moonleay.liljudd.data.NewsManager
|
||||
import net.moonleay.liljudd.data.StacktraceSaver
|
||||
import net.moonleay.liljudd.data.database.DB
|
||||
import net.moonleay.liljudd.extensions.*
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.features.MatchManager
|
||||
import net.moonleay.liljudd.features.TimeManager
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
|
|
@ -15,9 +15,10 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package net.moonleay.lilJudd
|
||||
package net.moonleay.liljudd
|
||||
|
||||
import net.moonleay.liljudd.build.BuildConstants
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
|
||||
|
||||
suspend fun main() {
|
||||
|
@ -27,9 +28,11 @@ suspend fun main() {
|
|||
"| |_| |__| |_ _ _| |_| |\n" +
|
||||
"| | | | | | | | . | . |\n" +
|
||||
"|_|_|_|_____|___|___|___|\n" +
|
||||
" "
|
||||
"v.${BuildConstants.version}\n"
|
||||
)
|
||||
println("v.${BuildConstants.version}")
|
||||
|
||||
Logger.out("li'l Judd made by moonleay (https://moonleay.net). Web UI made by IchLiebeZuege (https://mal-noh.de).")
|
||||
Logger.out("For more information check out https://liljudd.ink and https://git.moonleay.net/DiscordBots/lilJudd")
|
||||
|
||||
Bot.start()
|
||||
}
|
|
@ -16,14 +16,14 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.component
|
||||
package net.moonleay.liljudd.buttons.component
|
||||
|
||||
import net.moonleay.lilJudd.buttons.matchplanner.AcceptEditButton
|
||||
import net.moonleay.lilJudd.buttons.matchplanner.CancelEditButton
|
||||
import net.moonleay.lilJudd.buttons.matchplanner.DeclineEditButton
|
||||
import net.moonleay.lilJudd.buttons.timeplanner.IsAvailableEditButton
|
||||
import net.moonleay.lilJudd.buttons.timeplanner.MaybeAvailableEditButton
|
||||
import net.moonleay.lilJudd.buttons.timeplanner.NotAvailableEditButton
|
||||
import net.moonleay.liljudd.buttons.matchplanner.AcceptEditButton
|
||||
import net.moonleay.liljudd.buttons.matchplanner.CancelEditButton
|
||||
import net.moonleay.liljudd.buttons.matchplanner.DeclineEditButton
|
||||
import net.moonleay.liljudd.buttons.timeplanner.IsAvailableEditButton
|
||||
import net.moonleay.liljudd.buttons.timeplanner.MaybeAvailableEditButton
|
||||
import net.moonleay.liljudd.buttons.timeplanner.NotAvailableEditButton
|
||||
|
||||
object EditButtonManager {
|
||||
val buttons = listOf(
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.component
|
||||
package net.moonleay.liljudd.buttons.component
|
||||
|
||||
import dev.kord.core.behavior.interaction.response.PublicMessageInteractionResponseBehavior
|
||||
import dev.kord.core.entity.Guild
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.matchplanner
|
||||
package net.moonleay.liljudd.buttons.matchplanner
|
||||
|
||||
import dev.kord.common.entity.Snowflake
|
||||
import dev.kord.core.behavior.edit
|
||||
|
@ -27,12 +27,12 @@ import dev.kord.core.entity.channel.MessageChannel
|
|||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.EmbedBuilder
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
|
||||
class AcceptEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.matchmanagement.accept"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.matchplanner
|
||||
package net.moonleay.liljudd.buttons.matchplanner
|
||||
|
||||
import dev.kord.common.entity.Snowflake
|
||||
import dev.kord.core.behavior.edit
|
||||
|
@ -27,11 +27,11 @@ import dev.kord.core.entity.channel.MessageChannel
|
|||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.EmbedBuilder
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
|
||||
class CancelEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.matchmanagement.cancel"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.matchplanner
|
||||
package net.moonleay.liljudd.buttons.matchplanner
|
||||
|
||||
import dev.kord.common.entity.Snowflake
|
||||
import dev.kord.core.behavior.edit
|
||||
|
@ -27,12 +27,12 @@ import dev.kord.core.entity.channel.MessageChannel
|
|||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.EmbedBuilder
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
|
||||
class DeclineEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.matchmanagement.decline"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.timeplanner
|
||||
package net.moonleay.liljudd.buttons.timeplanner
|
||||
|
||||
import dev.kord.core.behavior.edit
|
||||
import dev.kord.core.behavior.interaction.response.PublicMessageInteractionResponseBehavior
|
||||
|
@ -25,10 +25,10 @@ import dev.kord.core.entity.User
|
|||
import dev.kord.core.entity.channel.MessageChannel
|
||||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
|
||||
class IsAvailableEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.timemanagement.available"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.timeplanner
|
||||
package net.moonleay.liljudd.buttons.timeplanner
|
||||
|
||||
import dev.kord.core.behavior.edit
|
||||
import dev.kord.core.behavior.interaction.response.PublicMessageInteractionResponseBehavior
|
||||
|
@ -25,10 +25,10 @@ import dev.kord.core.entity.User
|
|||
import dev.kord.core.entity.channel.MessageChannel
|
||||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
|
||||
class MaybeAvailableEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.timemanagement.maybeavailable"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.buttons.timeplanner
|
||||
package net.moonleay.liljudd.buttons.timeplanner
|
||||
|
||||
import dev.kord.core.behavior.edit
|
||||
import dev.kord.core.behavior.interaction.response.PublicMessageInteractionResponseBehavior
|
||||
|
@ -25,10 +25,10 @@ import dev.kord.core.entity.User
|
|||
import dev.kord.core.entity.channel.MessageChannel
|
||||
import dev.kord.core.entity.interaction.ButtonInteraction
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.buttons.component.IEditButton
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.buttons.component.IEditButton
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
|
||||
class NotAvailableEditButton : IEditButton {
|
||||
override val id: String = "public.edit.btn.timemanagement.notavailable"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data
|
||||
package net.moonleay.liljudd.data
|
||||
|
||||
import java.io.*
|
||||
import java.util.*
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data
|
||||
package net.moonleay.liljudd.data
|
||||
|
||||
import java.io.*
|
||||
import java.util.*
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data
|
||||
package net.moonleay.liljudd.data
|
||||
|
||||
import java.io.File
|
||||
|
|
@ -16,12 +16,12 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink
|
||||
|
||||
import kotlinx.serialization.json.Json
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.schedules.Schedules
|
||||
import net.moonleay.lilJudd.util.NetUtil
|
||||
import net.moonleay.liljudd.build.BuildConstants
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.schedules.Schedules
|
||||
import net.moonleay.liljudd.util.NetUtil
|
||||
|
||||
object Splatoon3Api {
|
||||
|
|
@ -16,13 +16,13 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink
|
||||
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.schedules.BankaraNode
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.schedules.RegularNode
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.schedules.SalmonRunNode
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.schedules.XNode
|
||||
import net.moonleay.lilJudd.util.TimeUtil
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.schedules.BankaraNode
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.schedules.RegularNode
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.schedules.SalmonRunNode
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.schedules.XNode
|
||||
import net.moonleay.liljudd.util.TimeUtil
|
||||
|
||||
object Splatoon3ApiDataGrabber {
|
||||
fun getRegularMode(timestamp: Long): RegularNode {
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.api.splatoon3ink.schedules
|
||||
package net.moonleay.liljudd.data.api.splatoon3ink.schedules
|
||||
|
||||
|
||||
import kotlinx.serialization.SerialName
|
|
@ -16,13 +16,13 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database
|
||||
package net.moonleay.liljudd.data.database
|
||||
|
||||
|
||||
import net.moonleay.lilJudd.data.database.tables.MatchPlanningData
|
||||
import net.moonleay.lilJudd.data.database.tables.PlanningNotifierRoles
|
||||
import net.moonleay.lilJudd.data.database.tables.TimePlanningChannels
|
||||
import net.moonleay.lilJudd.data.database.tables.TimePlanningMessages
|
||||
import net.moonleay.liljudd.data.database.tables.MatchPlanningData
|
||||
import net.moonleay.liljudd.data.database.tables.PlanningNotifierRoles
|
||||
import net.moonleay.liljudd.data.database.tables.TimePlanningChannels
|
||||
import net.moonleay.liljudd.data.database.tables.TimePlanningMessages
|
||||
import org.jetbrains.exposed.sql.Database
|
||||
import org.jetbrains.exposed.sql.SchemaUtils
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.entry
|
||||
package net.moonleay.liljudd.data.database.entry
|
||||
|
||||
data class MatchPlanningDataData(
|
||||
val id: Int,
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.entry
|
||||
package net.moonleay.liljudd.data.database.entry
|
||||
|
||||
data class PlanningNotifierRolesData(
|
||||
val id: Int, // The id of the entry
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.entry
|
||||
package net.moonleay.liljudd.data.database.entry
|
||||
|
||||
data class TimePlanningChannelsData(
|
||||
val id: Int,
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.entry
|
||||
package net.moonleay.liljudd.data.database.entry
|
||||
|
||||
data class TimePlanningMessagesData(
|
||||
val id: Int, // The id of the entry
|
|
@ -16,12 +16,15 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.repository
|
||||
package net.moonleay.liljudd.data.database.repository
|
||||
|
||||
import net.moonleay.lilJudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.lilJudd.data.database.tables.MatchPlanningData
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import net.moonleay.liljudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.liljudd.data.database.tables.MatchPlanningData
|
||||
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
|
||||
import org.jetbrains.exposed.sql.and
|
||||
import org.jetbrains.exposed.sql.deleteWhere
|
||||
import org.jetbrains.exposed.sql.insert
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
object MatchPlanningDataRepository {
|
|
@ -16,12 +16,15 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.repository
|
||||
package net.moonleay.liljudd.data.database.repository
|
||||
|
||||
import net.moonleay.lilJudd.data.database.entry.PlanningNotifierRolesData
|
||||
import net.moonleay.lilJudd.data.database.tables.PlanningNotifierRoles
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import net.moonleay.liljudd.data.database.entry.PlanningNotifierRolesData
|
||||
import net.moonleay.liljudd.data.database.tables.PlanningNotifierRoles
|
||||
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
|
||||
import org.jetbrains.exposed.sql.and
|
||||
import org.jetbrains.exposed.sql.deleteWhere
|
||||
import org.jetbrains.exposed.sql.insert
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
object PlanningNotifierRolesRepository {
|
|
@ -16,12 +16,15 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.repository
|
||||
package net.moonleay.liljudd.data.database.repository
|
||||
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningChannelsData
|
||||
import net.moonleay.lilJudd.data.database.tables.TimePlanningChannels
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningChannelsData
|
||||
import net.moonleay.liljudd.data.database.tables.TimePlanningChannels
|
||||
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
|
||||
import org.jetbrains.exposed.sql.and
|
||||
import org.jetbrains.exposed.sql.deleteWhere
|
||||
import org.jetbrains.exposed.sql.insert
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
object TimePlanningChannelsRepository {
|
|
@ -16,12 +16,13 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.repository
|
||||
package net.moonleay.liljudd.data.database.repository
|
||||
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.lilJudd.data.database.tables.TimePlanningMessages
|
||||
import org.jetbrains.exposed.sql.*
|
||||
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.liljudd.data.database.tables.TimePlanningMessages
|
||||
import org.jetbrains.exposed.sql.and
|
||||
import org.jetbrains.exposed.sql.insert
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
object TimePlanningMessagesRepository {
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.tables
|
||||
package net.moonleay.liljudd.data.database.tables
|
||||
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.tables
|
||||
package net.moonleay.liljudd.data.database.tables
|
||||
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.tables
|
||||
package net.moonleay.liljudd.data.database.tables
|
||||
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.data.database.tables
|
||||
package net.moonleay.liljudd.data.database.tables
|
||||
|
||||
import org.jetbrains.exposed.sql.Table
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.Arguments
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.impl.enumChoice
|
||||
|
@ -26,12 +26,12 @@ import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
|||
import com.kotlindiscord.kord.extensions.utils.hasPermission
|
||||
import dev.kord.common.entity.Permission
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.extensions.component.EnableOrDisable
|
||||
import net.moonleay.lilJudd.features.component.FeatureEnum
|
||||
import net.moonleay.lilJudd.features.component.FeatureManager
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.extensions.component.EnableOrDisable
|
||||
import net.moonleay.liljudd.features.component.FeatureEnum
|
||||
import net.moonleay.liljudd.features.component.FeatureManager
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
|
||||
class FeatureManageExtension : Extension() {
|
||||
|
|
@ -16,13 +16,13 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.extensions.Extension
|
||||
import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.build.BuildConstants
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
|
||||
class InfoExtension : Extension() {
|
||||
override val name = "info"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.Arguments
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.impl.enumChoice
|
||||
|
@ -26,15 +26,15 @@ import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
|||
import dev.kord.core.behavior.createRole
|
||||
import dev.kord.rest.builder.message.actionRow
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.extensions.component.MatchTypes
|
||||
import net.moonleay.lilJudd.jobs.MatchJob
|
||||
import net.moonleay.lilJudd.jobs.component.JobManager
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.lilJudd.util.TimeUtil
|
||||
import net.moonleay.liljudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.extensions.component.MatchTypes
|
||||
import net.moonleay.liljudd.jobs.MatchJob
|
||||
import net.moonleay.liljudd.jobs.component.JobManager
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.util.TimeUtil
|
||||
|
||||
class MatchExtension : Extension() {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.Arguments
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.impl.enumChoice
|
||||
|
@ -25,9 +25,9 @@ import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
|||
import dev.kord.common.Color
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import kotlinx.datetime.Clock
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiDataGrabber
|
||||
import net.moonleay.lilJudd.extensions.component.SplatoonOnlineMode
|
||||
import net.moonleay.lilJudd.util.TimeUtil
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.Splatoon3ApiDataGrabber
|
||||
import net.moonleay.liljudd.extensions.component.SplatoonOnlineMode
|
||||
import net.moonleay.liljudd.util.TimeUtil
|
||||
|
||||
class RotationExtension : Extension() {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.extensions.Extension
|
||||
import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
||||
|
@ -26,10 +26,10 @@ import dev.kord.core.behavior.channel.createMessage
|
|||
import dev.kord.rest.builder.message.actionRow
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import kotlinx.coroutines.delay
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.lilJudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.lilJudd.util.*
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.liljudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.liljudd.util.*
|
||||
import java.time.ZoneId
|
||||
import java.time.ZonedDateTime
|
||||
|
|
@ -16,17 +16,17 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions
|
||||
package net.moonleay.liljudd.extensions
|
||||
|
||||
import com.kotlindiscord.kord.extensions.extensions.Extension
|
||||
import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand
|
||||
import com.kotlindiscord.kord.extensions.utils.hasPermission
|
||||
import dev.kord.common.entity.Permission
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
|
||||
class UpdateRolesExtension : Extension() {
|
||||
override val name = "updateroles"
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions.component
|
||||
package net.moonleay.liljudd.extensions.component
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.ChoiceEnum
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions.component
|
||||
package net.moonleay.liljudd.extensions.component
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.ChoiceEnum
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.extensions.component
|
||||
package net.moonleay.liljudd.extensions.component
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.ChoiceEnum
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features
|
||||
package net.moonleay.liljudd.features
|
||||
|
||||
import com.kotlindiscord.kord.extensions.utils.isNullOrBot
|
||||
import dev.inmo.krontab.buildSchedule
|
||||
|
@ -29,15 +29,15 @@ import dev.kord.core.entity.channel.Channel
|
|||
import dev.kord.core.entity.channel.MessageChannel
|
||||
import dev.kord.gateway.PrivilegedIntent
|
||||
import dev.kord.rest.builder.message.EmbedBuilder
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.database.entry.PlanningNotifierRolesData
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.lilJudd.data.database.repository.PlanningNotifierRolesRepository
|
||||
import net.moonleay.lilJudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.lilJudd.extensions.FeatureManageExtension
|
||||
import net.moonleay.lilJudd.features.component.FeatureEnum
|
||||
import net.moonleay.lilJudd.features.component.IFeature
|
||||
import net.moonleay.lilJudd.util.*
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.database.entry.PlanningNotifierRolesData
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.liljudd.data.database.repository.PlanningNotifierRolesRepository
|
||||
import net.moonleay.liljudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.liljudd.extensions.FeatureManageExtension
|
||||
import net.moonleay.liljudd.features.component.FeatureEnum
|
||||
import net.moonleay.liljudd.features.component.IFeature
|
||||
import net.moonleay.liljudd.util.*
|
||||
import java.time.ZonedDateTime
|
||||
|
||||
object AvailabilityManager : IFeature {
|
|
@ -16,15 +16,15 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features
|
||||
package net.moonleay.liljudd.features
|
||||
|
||||
import dev.kord.common.entity.Snowflake
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.jobs.MatchJob
|
||||
import net.moonleay.lilJudd.jobs.component.JobManager
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.database.entry.MatchPlanningDataData
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.jobs.MatchJob
|
||||
import net.moonleay.liljudd.jobs.component.JobManager
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
|
||||
object MatchManager {
|
||||
suspend fun update() {
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features
|
||||
package net.moonleay.liljudd.features
|
||||
|
||||
import dev.inmo.krontab.buildSchedule
|
||||
import dev.inmo.krontab.doInfinity
|
||||
|
@ -29,19 +29,19 @@ import dev.kord.rest.builder.message.EmbedBuilder
|
|||
import dev.kord.rest.builder.message.actionRow
|
||||
import dev.kord.rest.builder.message.embed
|
||||
import kotlinx.coroutines.delay
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningChannelsData
|
||||
import net.moonleay.lilJudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.lilJudd.data.database.repository.PlanningNotifierRolesRepository
|
||||
import net.moonleay.lilJudd.data.database.repository.TimePlanningChannelsRepository
|
||||
import net.moonleay.lilJudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.lilJudd.extensions.FeatureManageExtension
|
||||
import net.moonleay.lilJudd.features.component.FeatureEnum
|
||||
import net.moonleay.lilJudd.features.component.IFeature
|
||||
import net.moonleay.lilJudd.util.EmbedColor
|
||||
import net.moonleay.lilJudd.util.EmbedUtil
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.lilJudd.util.MessageUtil
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningChannelsData
|
||||
import net.moonleay.liljudd.data.database.entry.TimePlanningMessagesData
|
||||
import net.moonleay.liljudd.data.database.repository.PlanningNotifierRolesRepository
|
||||
import net.moonleay.liljudd.data.database.repository.TimePlanningChannelsRepository
|
||||
import net.moonleay.liljudd.data.database.repository.TimePlanningMessagesRepository
|
||||
import net.moonleay.liljudd.extensions.FeatureManageExtension
|
||||
import net.moonleay.liljudd.features.component.FeatureEnum
|
||||
import net.moonleay.liljudd.features.component.IFeature
|
||||
import net.moonleay.liljudd.util.EmbedColor
|
||||
import net.moonleay.liljudd.util.EmbedUtil
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import net.moonleay.liljudd.util.MessageUtil
|
||||
import java.time.ZoneId
|
||||
import java.time.ZonedDateTime
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features.component
|
||||
package net.moonleay.liljudd.features.component
|
||||
|
||||
import com.kotlindiscord.kord.extensions.commands.application.slash.converters.ChoiceEnum
|
||||
|
|
@ -16,10 +16,10 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features.component
|
||||
package net.moonleay.liljudd.features.component
|
||||
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
import net.moonleay.lilJudd.features.TimeManager
|
||||
import net.moonleay.liljudd.features.AvailabilityManager
|
||||
import net.moonleay.liljudd.features.TimeManager
|
||||
|
||||
object FeatureManager {
|
||||
val features = mutableListOf(AvailabilityManager, TimeManager) // Stores all features
|
|
@ -16,12 +16,12 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.features.component
|
||||
package net.moonleay.liljudd.features.component
|
||||
|
||||
import dev.kord.core.behavior.UserBehavior
|
||||
import dev.kord.core.entity.channel.Channel
|
||||
import dev.kord.rest.builder.message.EmbedBuilder
|
||||
import net.moonleay.lilJudd.extensions.FeatureManageExtension
|
||||
import net.moonleay.liljudd.extensions.FeatureManageExtension
|
||||
|
||||
interface IFeature {
|
||||
val feat: FeatureEnum
|
|
@ -16,17 +16,17 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs
|
||||
package net.moonleay.liljudd.jobs
|
||||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import dev.kord.common.entity.Snowflake
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.lilJudd.jobs.component.JobManager
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.database.repository.MatchPlanningDataRepository
|
||||
import net.moonleay.liljudd.jobs.component.CronjobType
|
||||
import net.moonleay.liljudd.jobs.component.ICronjob
|
||||
import net.moonleay.liljudd.jobs.component.JobManager
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
|
||||
class MatchJob(
|
||||
override val jobIncoming: String,
|
|
@ -16,14 +16,14 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs
|
||||
package net.moonleay.liljudd.jobs
|
||||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3Api
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.Splatoon3Api
|
||||
import net.moonleay.liljudd.jobs.component.CronjobType
|
||||
import net.moonleay.liljudd.jobs.component.ICronjob
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
|
||||
object Splatoon3ApiScheduleUpdateScheduler : ICronjob {
|
||||
override val jobName: String
|
|
@ -16,15 +16,15 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs
|
||||
package net.moonleay.liljudd.jobs
|
||||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import dev.kord.common.entity.PresenceStatus
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.Bot
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiDataGrabber
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.liljudd.Bot
|
||||
import net.moonleay.liljudd.data.api.splatoon3ink.Splatoon3ApiDataGrabber
|
||||
import net.moonleay.liljudd.jobs.component.CronjobType
|
||||
import net.moonleay.liljudd.jobs.component.ICronjob
|
||||
|
||||
object StatusUpdater : ICronjob {
|
||||
override val jobName: String
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs.component
|
||||
package net.moonleay.liljudd.jobs.component
|
||||
|
||||
enum class CronjobType {
|
||||
INFINITE,
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs.component
|
||||
package net.moonleay.liljudd.jobs.component
|
||||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import kotlinx.coroutines.Job
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.jobs.component
|
||||
package net.moonleay.liljudd.jobs.component
|
||||
|
||||
import dev.inmo.krontab.buildSchedule
|
||||
import dev.inmo.krontab.doInfinityTz
|
||||
|
@ -25,7 +25,7 @@ import dev.inmo.krontab.doWhileTz
|
|||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.launch
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
import net.moonleay.liljudd.util.Logger
|
||||
import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import dev.kord.common.Color
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import dev.kord.common.entity.ButtonStyle
|
||||
import dev.kord.core.entity.Embed
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import dev.kord.core.behavior.UserBehavior
|
||||
import dev.kord.core.entity.Embed
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import java.net.URL
|
||||
import javax.net.ssl.HttpsURLConnection
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.moonleay.lilJudd.util
|
||||
package net.moonleay.liljudd.util
|
||||
|
||||
import kotlinx.datetime.DayOfWeek
|
||||
import java.time.Duration
|
Loading…
Reference in a new issue