mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
18 lines
285 B
Go
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
|
|
}
|