mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-12 06:00:29 +08:00
🐛 example
This commit is contained in:
@@ -14,7 +14,7 @@ func main() {
|
|||||||
AppID: "你的AppID",
|
AppID: "你的AppID",
|
||||||
Token: "你的Token",
|
Token: "你的Token",
|
||||||
Secret: "你的Secret, 目前没用到, 可以不填",
|
Secret: "你的Secret, 目前没用到, 可以不填",
|
||||||
Intents: nano.IntentPublic,
|
Intents: nano.IntentGuildPublic,
|
||||||
Handler: &nano.Handler{
|
Handler: &nano.Handler{
|
||||||
OnAtMessageCreate: func(s uint32, bot *nano.Bot, d *nano.Message) {
|
OnAtMessageCreate: func(s uint32, bot *nano.Bot, d *nano.Message) {
|
||||||
u := ""
|
u := ""
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ func main() {
|
|||||||
AppID: "你的AppID",
|
AppID: "你的AppID",
|
||||||
Token: "你的Token",
|
Token: "你的Token",
|
||||||
Secret: "你的Secret, 目前没用到, 可以不填",
|
Secret: "你的Secret, 目前没用到, 可以不填",
|
||||||
Intents: nano.IntentPublic,
|
Intents: nano.IntentGuildPublic,
|
||||||
SuperUsers: []string{"用户ID1", "用户ID2"},
|
SuperUsers: []string{"用户ID1", "用户ID2"},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user