Skip to content

Commit bb844ea

Browse files
authored
Feature gui 20230219 (#597)
* ✨ 添加gui * 🐛 添加位置 * ✨ 修改为0.0.0.0 * ✨ 添加webui说明 * 🎨 修改为本地 * ✨ 添加webui默认url * 📝 修改readme * 🎨 修改方法名 * ✨ 修改readme * 🎨 修改命令 * 🎨 更新包 * 🎨 调整位置
1 parent 4ef6f58 commit bb844ea

File tree

4 files changed

+176
-7
lines changed

4 files changed

+176
-7
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@
3737
3838
> 如果您对开发插件感兴趣,欢迎加入[ZeroBot-Plugin-Playground](https://github.com/FloatTech/ZeroBot-Plugin-Playground)
3939
40+
> webui持续开发中, 欢迎加入[ZeroBot-Plugin-Webui](https://github.com/FloatTech/ZeroBot-Plugin-Webui)
41+
4042
## 命令行参数
4143
> `[]`代表是可选参数
4244
```bash
43-
zerobot [-h] [-n nickname] [-t token] [-u url] [-p prefix] [-d|w] [-c|s config.json] [-l latency] [-r ringlen] [-x max process time] [qq1 qq2 qq3 ...] [&]
45+
zerobot [-h] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w] [-c|s config.json] [-l latency] [-r ringlen] [-x max process time] [qq1 qq2 qq3 ...] [&]
4446
```
4547
- **-h**: 显示帮助
4648
- **-n nickname**: 设置默认昵称,默认为`椛椛`
4749
- **-t token**: 设置`AccessToken`,默认为空
4850
- **-u url**: 设置`Url`,默认为`ws://127.0.0.1:6700`
51+
- **-g url**: 设置`webui url`,默认为`127.0.0.1:3000`
4952
- **-p prefix**: 设置命令前缀,默认为`/`
5053
- **-d|w**: 开启 debug | warning 级别及以上日志输出
5154
- **-c config.json**: 从`config.json`加载`bot`配置
@@ -131,6 +134,12 @@ zerobot [-h] [-n nickname] [-t token] [-u url] [-p prefix] [-d|w] [-c|s config.j
131134

132135
- [x] /设置服务列表显示行数 xx
133136

137+
- [x] /设置webui用户名 zerobot 密码 123456
138+
139+
- [x] /webui启动
140+
141+
- [x] /webui停止
142+
134143
默认值为9,该设置仅运行时有效,zbp重启后重置
135144
- [x] @Bot 插件冲突检测 (会在本群发送一条消息并在约 1s 后撤回以检测其它同类 bot 中已启用的插件并禁用)
136145

@@ -1300,7 +1309,7 @@ print("run[CQ:image,file="+j["img"]+"]")
13001309

13011310
</details>
13021311
<details>
1303-
<summary>vtb语录</summary>
1312+
<summary>vtb点歌</summary>
13041313

13051314
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbmusic"`
13061315

go.mod

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/FloatTech/sqlite v1.5.7
1313
github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b
1414
github.com/FloatTech/zbpctrl v1.5.3-0.20230301071613-f2c5c97cec88
15-
github.com/FloatTech/zbputils v1.6.2-0.20230301080528-6560d8a50f34
15+
github.com/FloatTech/zbputils v1.6.2-0.20230307162107-afabd2e01eea
1616
github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e
1717
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5
1818
github.com/antchfx/htmlquery v1.2.5
@@ -46,15 +46,29 @@ require (
4646
)
4747

4848
require (
49+
github.com/FloatTech/ZeroBot-Plugin-Webui v1.0.1-0.20230307153523-5c33f1700c1a // indirect
50+
github.com/KyleBanks/depth v1.2.1 // indirect
51+
github.com/PuerkitoBio/purell v1.1.1 // indirect
52+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
4953
github.com/antchfx/xpath v1.2.1 // indirect
5054
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 // indirect
5155
github.com/faiface/beep v1.1.0 // indirect
5256
github.com/fumiama/go-simple-protobuf v0.1.0 // indirect
5357
github.com/fumiama/gofastTEA v0.0.10 // indirect
5458
github.com/fumiama/imgsz v0.0.2 // indirect
5559
github.com/gabriel-vasile/mimetype v1.0.4 // indirect
60+
github.com/gin-contrib/sse v0.1.0 // indirect
61+
github.com/gin-gonic/gin v1.8.2 // indirect
5662
github.com/go-ole/go-ole v1.2.6 // indirect
63+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
64+
github.com/go-openapi/jsonreference v0.19.6 // indirect
65+
github.com/go-openapi/spec v0.20.4 // indirect
66+
github.com/go-openapi/swag v0.19.15 // indirect
67+
github.com/go-playground/locales v0.14.0 // indirect
68+
github.com/go-playground/universal-translator v0.18.0 // indirect
69+
github.com/go-playground/validator/v10 v10.11.1 // indirect
5770
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
71+
github.com/goccy/go-json v0.9.11 // indirect
5872
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
5973
github.com/golang/mock v1.6.0 // indirect
6074
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
@@ -63,22 +77,34 @@ require (
6377
github.com/jfreymuth/oggvorbis v1.0.1 // indirect
6478
github.com/jfreymuth/vorbis v1.0.0 // indirect
6579
github.com/jinzhu/inflection v1.0.0 // indirect
80+
github.com/josharian/intern v1.0.0 // indirect
81+
github.com/json-iterator/go v1.1.12 // indirect
6682
github.com/kr/pretty v0.3.1 // indirect
83+
github.com/leodido/go-urn v1.2.1 // indirect
6784
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
85+
github.com/mailru/easyjson v0.7.6 // indirect
6886
github.com/mattn/go-isatty v0.0.16 // indirect
87+
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
88+
github.com/modern-go/reflect2 v1.0.2 // indirect
6989
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
7090
github.com/onsi/ginkgo/v2 v2.2.0 // indirect
91+
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
92+
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
7193
github.com/pkumza/numcn v1.0.0 // indirect
7294
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
7395
github.com/quic-go/qpack v0.4.0 // indirect
7496
github.com/quic-go/qtls-go1-18 v0.2.0 // indirect
7597
github.com/quic-go/qtls-go1-19 v0.2.0 // indirect
7698
github.com/quic-go/qtls-go1-20 v0.1.0 // indirect
7799
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
100+
github.com/swaggo/files v1.0.0 // indirect
101+
github.com/swaggo/gin-swagger v1.5.3 // indirect
102+
github.com/swaggo/swag v1.8.10 // indirect
78103
github.com/tidwall/match v1.1.1 // indirect
79104
github.com/tidwall/pretty v1.2.0 // indirect
80105
github.com/tklauser/go-sysconf v0.3.11 // indirect
81106
github.com/tklauser/numcpus v0.6.0 // indirect
107+
github.com/ugorji/go/codec v1.2.7 // indirect
82108
github.com/yusufpapurcu/wmi v1.2.2 // indirect
83109
golang.org/x/crypto v0.4.0 // indirect
84110
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
@@ -87,6 +113,8 @@ require (
87113
golang.org/x/mod v0.6.0 // indirect
88114
golang.org/x/net v0.4.0 // indirect
89115
golang.org/x/tools v0.2.0 // indirect
116+
google.golang.org/protobuf v1.28.1 // indirect
117+
gopkg.in/yaml.v2 v2.4.0 // indirect
90118
modernc.org/libc v1.21.5 // indirect
91119
modernc.org/mathutil v1.5.0 // indirect
92120
modernc.org/memory v1.4.0 // indirect

0 commit comments

Comments
 (0)