以入参形式指定superusers避免反复编译

This commit is contained in:
fumiama
2021-06-03 20:06:16 +08:00
parent 36e338e9dd
commit e2c5905d0a
2 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"fmt"
"os"
log "github.com/sirupsen/logrus"
easy "github.com/t-tomalak/logrus-easy-formatter"
@@ -47,7 +48,7 @@ func main() {
zero.Run(zero.Config{
NickName: []string{"椛椛", "ATRI", "atri", "亚托莉", "アトリ"},
CommandPrefix: "/",
SuperUsers: []string{"825111790", "213864964"}, // 必须修改,否则无权限
SuperUsers: os.Args[1:], // 必须修改,否则无权限
Driver: []zero.Driver{
driver.NewWebSocketClient("127.0.0.1", "6700", ""),
},