mirror of
https://github.com/woodchen-ink/Q58Bot.git
synced 2025-07-18 13:52:07 +08:00
24 lines
379 B
Go
24 lines
379 B
Go
package service
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
|
|
"github.com/woodchen-ink/Q58Bot/core"
|
|
)
|
|
|
|
var (
|
|
dbFile string
|
|
debugMode bool
|
|
)
|
|
|
|
func Init(botToken string, adminID int64) {
|
|
core.InitGlobalVariables(botToken, adminID)
|
|
dbFile = "/app/data/q58.db"
|
|
debugMode = os.Getenv("DEBUG_MODE") == "true"
|
|
|
|
// 设置时区
|
|
loc := time.FixedZone("Asia/Singapore", 8*60*60)
|
|
time.Local = loc
|
|
}
|