forked from DiscordBots/lilJudd
fix: fixed bot spamming, due to wrong cron config
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
21ad3492c7
commit
943cc0b82c
2 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ package net.moonleay.lilJudd.data.tables
|
||||||
import org.jetbrains.exposed.dao.id.IntIdTable
|
import org.jetbrains.exposed.dao.id.IntIdTable
|
||||||
|
|
||||||
object TimePlanningChannels : IntIdTable() {
|
object TimePlanningChannels : IntIdTable() {
|
||||||
//val aid = integer("id").autoIncrement()
|
|
||||||
var serverid = varchar("serverid", 50)
|
var serverid = varchar("serverid", 50)
|
||||||
val channelid = varchar("channelid", 50)
|
val channelid = varchar("channelid", 50)
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ object TimePlanner {
|
||||||
|
|
||||||
suspend fun registerThread() {
|
suspend fun registerThread() {
|
||||||
Logger.out("Adding scheduler...")
|
Logger.out("Adding scheduler...")
|
||||||
val scheduler = buildSchedule("0 0 4 * * * 0o 1") // 0 0 4 * * * 0o 1 // 0o is UTC
|
val scheduler = buildSchedule("0 0 4 * * * 0o 1w") // 0 0 4 * * * 0o 1 // 0o is UTC
|
||||||
scheduler.doInfinity {
|
scheduler.doInfinity {
|
||||||
Logger.out("Starting to notify...")
|
Logger.out("Starting to notify...")
|
||||||
val channelList = mutableListOf<Snowflake>()
|
val channelList = mutableListOf<Snowflake>()
|
||||||
|
|
Loading…
Reference in a new issue