debug discordHook logics, session fix.

- DiscordHook normal respond is not defined
- add MariadbSessionStorage
This commit is contained in:
dalbodeule
2024-08-10 17:16:36 +09:00
parent e951ccee56
commit 2335a09391
5 changed files with 55 additions and 4 deletions

View File

@@ -34,7 +34,8 @@ object Connector {
TimerConfigs,
LiveStatuses,
SongLists,
SongConfigs
SongConfigs,
Sessions
)
transaction {

View File

@@ -0,0 +1,18 @@
package space.mori.chzzk_bot.common.models
import org.jetbrains.exposed.dao.IntEntity
import org.jetbrains.exposed.dao.IntEntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IntIdTable
object Sessions: IntIdTable("session") {
val key = text("key")
val value = text("value")
}
class Session(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<Session>(Sessions)
var key by Sessions.key
var value by Sessions.value
}