Skip to content

Commit

Permalink
feat: add option -superallqq
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Nov 22, 2023
1 parent 7cc83e8 commit 3cc0e4d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/FloatTech/zbpctrl v1.6.0
github.com/FloatTech/zbputils v1.7.1-0.20231017135158-7e6c839764eb
github.com/disintegration/imaging v1.6.2
github.com/fumiama/NanoBot v0.0.0-20231122093311-e35fea59039a
github.com/fumiama/NanoBot v0.0.0-20231122124546-e2acac137201
github.com/fumiama/go-base16384 v1.7.0
github.com/fumiama/go-registry v0.2.6
github.com/fumiama/unibase2n v0.0.0-20221020155353-02876e777430
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 h1:BBade+Jl
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4/go.mod h1:H7chHJglrhPPzetLdzBleF8d22WYOv7UM/lEKYiwlKM=
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 h1:Yzb9+7DPaBjB8zlTR87/ElzFsnQfuHnVUVqpZZIcV5Y=
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod h1:a2zkGnVExMxdzMo3M0Hi/3sEU+cWnZpSni0O6/Yb/P0=
github.com/fumiama/NanoBot v0.0.0-20231122093311-e35fea59039a h1:v3PzGUKUsMP6QLYiVD3h58jxFmhX+4gI5UBJCNDXKWk=
github.com/fumiama/NanoBot v0.0.0-20231122093311-e35fea59039a/go.mod h1:z9IDRRwntGIrnnxcwgjVge7lUa2GkGWFT7F1uYZbvh8=
github.com/fumiama/NanoBot v0.0.0-20231122124546-e2acac137201 h1:zp/c3r5rWbUHXm8dI8Gn2NTO7ItstWUU5ro2aiEiErU=
github.com/fumiama/NanoBot v0.0.0-20231122124546-e2acac137201/go.mod h1:z9IDRRwntGIrnnxcwgjVge7lUa2GkGWFT7F1uYZbvh8=
github.com/fumiama/bigfft v0.0.0-20211011143303-6e0bfa3c836b h1:Zt3pFQditAdWTHCOVkiloc9ZauBoWrb37guFV4iIRvE=
github.com/fumiama/bigfft v0.0.0-20211011143303-6e0bfa3c836b/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/fumiama/cron v1.3.0 h1:ZWlwuexF+HQHl3cYytEE5HNwD99q+3vNZF1GrEiXCFo=
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func main() {
shardindex := flag.Uint("shardindex", 0, "shard index")
shardcount := flag.Uint("shardcount", 0, "shard count")
savecfg := flag.String("save", "", "save bot config to filename (eg. config.yaml)")
superallqqusers := flag.Bool("superallqq", false, "make all QQ users to be SuperUser")
flag.Parse()
if *help {
fmt.Println("Usage:")
Expand All @@ -80,6 +81,9 @@ func main() {
}

sus := make([]string, 0, 16)
if *superallqqusers {
sus = append(sus, nano.SuperUserAllQQUsers)
}
for _, s := range flag.Args() {
_, err := strconv.ParseInt(s, 10, 64)
if err != nil {
Expand Down

0 comments on commit 3cc0e4d

Please sign in to comment.