mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-13 06:50:41 +08:00
optimize: hide caller & add preblock
This commit is contained in:
@@ -51,7 +51,7 @@ func main() {
|
||||
Handle(func(ctx *nano.Ctx) {
|
||||
_, _ = ctx.SendPlainMessage(false, "echo string")
|
||||
})
|
||||
nano.Run(&nano.Bot{
|
||||
nano.Run(nil, &nano.Bot{
|
||||
AppID: "你的AppID",
|
||||
Token: "你的Token",
|
||||
Secret: "你的Secret, 目前没用到, 可以不填",
|
||||
@@ -80,7 +80,7 @@ import (
|
||||
func main() {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
nano.OpenAPI = nano.SandboxAPI
|
||||
nano.Run(&nano.Bot{
|
||||
nano.Run(nil, &nano.Bot{
|
||||
AppID: "你的AppID",
|
||||
Token: "你的Token",
|
||||
Secret: "你的Secret, 目前没用到, 可以不填",
|
||||
|
||||
Reference in New Issue
Block a user