forked from FloatTech/gocq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
24 lines (21 loc) · 628 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Package main
package main
import (
"github.com/Mrs4s/go-cqhttp/cmd/gocq"
_ "github.com/Mrs4s/go-cqhttp/db/leveldb" // leveldb 数据库支持
_ "github.com/Mrs4s/go-cqhttp/modules/silk" // silk编码模块
// 其他模块
// _ "github.com/Mrs4s/go-cqhttp/db/sqlite3" // sqlite3 数据库支持
// _ "github.com/Mrs4s/go-cqhttp/db/mongodb" // mongodb 数据库支持
// _ "github.com/Mrs4s/go-cqhttp/modules/pprof" // pprof 性能分析
)
func main() {
gocq.InitBase()
gocq.InitLog()
gocq.InitCache()
gocq.InitDB()
gocq.PrintBanner()
gocq.LoadDevice()
gocq.CheckKey(gocq.ParseCommand())
gocq.Main()
}