1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-09 12:40:24 +08:00

fix: qq group rules

This commit is contained in:
源文雨
2023-11-22 21:42:08 +09:00
parent e35fea5903
commit a455a5df6c
5 changed files with 13 additions and 8 deletions

7
bot.go
View File

@@ -23,13 +23,18 @@ var (
isrunning uintptr
)
const (
// SuperUserAllQQUsers 使所有 QQ 用户成为超级用户
SuperUserAllQQUsers = "AllQQUsers"
)
// Bot 一个机器人实例的配置
type Bot struct {
AppID string `yaml:"AppID"` // AppID is BotAppID开发者ID
Token string `yaml:"Token"` // Token is 机器人令牌 有 Secret 则使用新版 API
token string // token 是通过 secret 获得的残血 token
Secret string `yaml:"Secret"` // Secret is 机器人令牌 V2 (AppSecret/ClientSecret) 沙盒目前虽然能登录但无法收发消息
SuperUsers []string `yaml:"SuperUsers"` // SuperUsers 超级用户
SuperUsers []string `yaml:"SuperUsers"` // SuperUsers 超级用户, 特殊: AllQQUsers 将使所有 QQ 用户成为超级用户
Timeout time.Duration `yaml:"Timeout"` // Timeout is API 调用超时
Handler *Handler `yaml:"-"` // Handler 注册对各种事件的处理
Intents uint32 `yaml:"Intents"` // Intents 欲接收的事件