-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathapp.go
More file actions
37 lines (31 loc) · 804 Bytes
/
app.go
File metadata and controls
37 lines (31 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
import (
"fmt"
m "gm/modules"
"gm/utils"
zero "github.com/wdvxdr1123/ZeroBot"
)
var Conf = &utils.YamlConfig{}
func main() {
zero.Run(zero.Option{
Host: Conf.Host,
Port: Conf.Port,
AccessToken: Conf.AccessToken,
NickName: []string{"GroupManager"},
CommandPrefix: "/",
SuperUsers: Conf.Master,
})
select {}
}
func init() {
fmt.Println(`
====================[GroupManager]====================
* Mirai + ZeroBot + Golang
* Copyright © 2018-2020 Kanri, All Rights Reserved
* Project: https://github.com/Yiwen-Chan/GroupManager
=======================================================
`)
Conf = utils.Load("./data/config.yml")
m.Conf = Conf
fmt.Println("[GroupManager] 有需要请按 GitHub 项目上描述的方法修改配置文件")
}