ZeroBot-Plugin/plugin/cpstory/model.go
2024-11-07 00:12:51 +09:00

18 lines
285 B
Go

package cpstory
import sql "github.com/FloatTech/sqlite"
type cpstory struct {
ID int64 `db:"id"`
Gong string `db:"gong"`
Shou string `db:"shou"`
Story string `db:"story"`
}
var db sql.Sqlite
func getRandomCpStory() (cs cpstory) {
_ = db.Pick("cp_story", &cs)
return
}