chore: improved logging further
All checks were successful
Build Gradle project / build-gradle-project (push) Successful in 2m54s
All checks were successful
Build Gradle project / build-gradle-project (push) Successful in 2m54s
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
0cd3e4d6a8
commit
4b46d34f45
3 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ suspend fun main() {
|
|||
"v.${BuildConstants.version}\n"
|
||||
)
|
||||
|
||||
Logger.out("li'l Judd made by moonleay (https://moonleay.net). Web UI made by IchLiebeZuege (https://mal-noh.de).")
|
||||
Logger.out("li'l Judd made by moonleay (https://moonleay.net). Web UI made by aronmal (https://mal-noh.de).")
|
||||
Logger.out("For more information check out https://liljudd.ink and https://git.moonleay.net/DiscordBots/lilJudd")
|
||||
|
||||
Bot.start()
|
||||
|
|
|
@ -44,7 +44,7 @@ object AvailabilityManager : IFeature {
|
|||
|
||||
// This runs during the cronjob.
|
||||
suspend fun runThread() {
|
||||
Logger.out("Starting to update roles...")
|
||||
Logger.out("Updating match roles")
|
||||
|
||||
// ChannelID, Data
|
||||
val messages = TimePlanningMessagesRepository.getWeek(TimeUtil.getWeekStamp().toEpochSecond())
|
||||
|
@ -162,7 +162,7 @@ object AvailabilityManager : IFeature {
|
|||
|
||||
// Register the cronjob to run at 1AM UTC every day
|
||||
override suspend fun registerThread() {
|
||||
Logger.out("Adding availability scheduler...")
|
||||
Logger.out("Registering daily planning message role update coroutine")
|
||||
val scheduler = buildSchedule("0 0 2 * * *") // 0 0 4 * * * 0o 1w // 0o is UTC
|
||||
scheduler.doInfinity {
|
||||
this.runThread()
|
||||
|
@ -176,7 +176,7 @@ object AvailabilityManager : IFeature {
|
|||
ch: Channel,
|
||||
args: FeatureManageExtension.FeatureManagerArgs
|
||||
): EmbedBuilder {
|
||||
var alreadyExists = PlanningNotifierRolesRepository.existsInChannel(cID)
|
||||
val alreadyExists = PlanningNotifierRolesRepository.existsInChannel(cID)
|
||||
// Check if the channel and guild already exist in the db
|
||||
if (!alreadyExists) {
|
||||
// Create the roles in Discord
|
||||
|
|
|
@ -52,7 +52,7 @@ object TimeManager : IFeature {
|
|||
|
||||
// Register the cronjob to run at 0:01 AM UTC every Monday
|
||||
override suspend fun registerThread() {
|
||||
Logger.out("Adding message scheduler...")
|
||||
Logger.out("Registering weekly planning message posting coroutine")
|
||||
val scheduler = buildSchedule("0 0 1 * * * 0o 1w") // 0 0 4 * * * 0o 1w // 0o is UTC
|
||||
scheduler.doInfinity {
|
||||
this.runThread()
|
||||
|
|
Loading…
Reference in a new issue