github.com/Mrs4s/go-cqhttp@v1.2.0/main.go (about)

     1  // Package main
     2  package main
     3  
     4  import (
     5  	"github.com/Mrs4s/go-cqhttp/cmd/gocq"
     6  	"github.com/Mrs4s/go-cqhttp/global/terminal"
     7  
     8  	_ "github.com/Mrs4s/go-cqhttp/db/leveldb"   // leveldb 数据库支持
     9  	_ "github.com/Mrs4s/go-cqhttp/modules/silk" // silk编码模块
    10  	// 其他模块
    11  	// _ "github.com/Mrs4s/go-cqhttp/db/sqlite3"   // sqlite3 数据库支持
    12  	// _ "github.com/Mrs4s/go-cqhttp/db/mongodb"    // mongodb 数据库支持
    13  	// _ "github.com/Mrs4s/go-cqhttp/modules/pprof" // pprof 性能分析
    14  )
    15  
    16  func main() {
    17  	terminal.SetTitle()
    18  	gocq.InitBase()
    19  	gocq.PrepareData()
    20  	gocq.LoginInteract()
    21  	_ = terminal.DisableQuickEdit()
    22  	_ = terminal.EnableVT100()
    23  	gocq.WaitSignal()
    24  	_ = terminal.RestoreInputMode()
    25  }