File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ print("run[CQ:image,file="+j["img"]+"]")
515
515
516
516
` import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/funny" `
517
517
518
- - [x] 讲个笑话[ @xxx ] | 讲个笑话 [ qq号]
518
+ - [x] 讲个笑话[ @xxx |qq号|人名 ] | 夸夸 [ @ xxx | qq号|人名 ]
519
519
520
520
</details >
521
521
<details >
@@ -918,6 +918,8 @@ print("run[CQ:image,file="+j["img"]+"]")
918
918
919
919
- [x] b站推送列表
920
920
921
+ - 注:由于需要安装Chrome,默认注释,具体看[ 这里] ( https://www.yuque.com/xiangrikuidezhongzi/zerobot/qrwxth )
922
+
921
923
</details >
922
924
923
925
### * 低优先级*
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ func init() {
25
25
en := control .Register ("funny" , & control.Options {
26
26
DisableOnDefault : false ,
27
27
Help : "讲个笑话\n " +
28
- "- 讲个笑话[@xxx] | 讲个笑话[ qq号] " ,
28
+ "- 讲个笑话[@xxx|qq号|人名 ] | 夸夸[@xxx| qq号|人名] " ,
29
29
PublicDataFolder : "Funny" ,
30
30
})
31
31
32
- en .OnPrefix ( "讲个笑话" , ctxext .DoOnceOnSuccess (func (ctx * zero.Ctx ) bool {
32
+ en .OnPrefixGroup ([] string { "讲个笑话" , "夸夸" } , ctxext .DoOnceOnSuccess (func (ctx * zero.Ctx ) bool {
33
33
dbpath := en .DataFolder ()
34
34
db .DBPath = dbpath + "jokes.db"
35
35
_ , err := file .GetLazyData (db .DBPath , false , true )
You can’t perform that action at this time.
0 commit comments