forked from DiscordBots/lilJudd
fix: finished removing useless paths from the refactor
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
f3b28ac392
commit
e6803f6474
4 changed files with 21 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* lilJudd
|
||||
* Copyright (C) 2023 moonleay
|
||||
* Copyright (C) 2024 moonleay
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -32,9 +32,9 @@ 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.api.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.data.database.DB
|
||||
import net.moonleay.lilJudd.extensions.*
|
||||
import net.moonleay.lilJudd.features.AvailabilityManager
|
||||
|
@ -74,6 +74,11 @@ object Bot {
|
|||
exitProcess(3)
|
||||
}
|
||||
|
||||
if (CredentialManager.apiDomain == "empty" || CredentialManager.apiToken == "empty") {
|
||||
Logger.out("The config does not contain the whole API credentials.")
|
||||
exitProcess(3)
|
||||
}
|
||||
|
||||
// Connect to the database
|
||||
DB.connect(
|
||||
CredentialManager.dbDomain,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* lilJudd
|
||||
* Copyright (C) 2023 moonleay
|
||||
* Copyright (C) 2024 moonleay
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -20,9 +20,9 @@ package net.moonleay.lilJudd.jobs
|
|||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.data.api.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* lilJudd
|
||||
* Copyright (C) 2023 moonleay
|
||||
* Copyright (C) 2024 moonleay
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -20,9 +20,9 @@ package net.moonleay.lilJudd.jobs
|
|||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.data.api.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* lilJudd
|
||||
* Copyright (C) 2023 moonleay
|
||||
* Copyright (C) 2024 moonleay
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -20,9 +20,9 @@ package net.moonleay.lilJudd.jobs
|
|||
|
||||
import dev.inmo.krontab.KronScheduler
|
||||
import kotlinx.coroutines.Job
|
||||
import net.moonleay.lilJudd.data.api.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.Splatoon3ApiCache
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiDataType
|
||||
import net.moonleay.lilJudd.data.api.splatoon3ink.type.ApiRequestType
|
||||
import net.moonleay.lilJudd.jobs.component.CronjobType
|
||||
import net.moonleay.lilJudd.jobs.component.ICronjob
|
||||
import net.moonleay.lilJudd.util.Logger
|
||||
|
|
Loading…
Reference in a new issue