mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
debug discordHook logics, session fix.
- DiscordHook normal respond is not defined - add MariadbSessionStorage
This commit is contained in:
@@ -34,7 +34,8 @@ object Connector {
|
||||
TimerConfigs,
|
||||
LiveStatuses,
|
||||
SongLists,
|
||||
SongConfigs
|
||||
SongConfigs,
|
||||
Sessions
|
||||
)
|
||||
|
||||
transaction {
|
||||
|
@@ -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
|
||||
}
|
Reference in New Issue
Block a user