Skip to content

Commit 452f5e5

Browse files
committed
💩👌 make lint happy
1 parent c94b9f5 commit 452f5e5

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,15 @@ print("run[CQ:image,file="+j["img"]+"]")
629629
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/lolicon"`
630630

631631
- [x] 来份萝莉
632+
632633
- [x] 设置随机图片地址[http...]
633634

635+
- 每一小时发一张图
636+
```
637+
记录在"@every 1h"触发的指令
638+
来份萝莉
639+
```
640+
634641
</details>
635642
<details>
636643
<summary>摸鱼</summary>

plugin/bilibili/model.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ func updateVup() error {
9494
uname := value.Get("uname").String()
9595
roomid := value.Get("roomid").Int()
9696
err = vdb.insertVupByMid(mid, uname, roomid)
97-
if err != nil {
98-
return false
99-
}
100-
return true
97+
return err == nil
10198
})
10299
if err != nil {
103100
return err

plugin/hyaku/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package hyaku 百人一首
12
package hyaku
23

34
import (

plugin/tarot/tarot.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package tarot 塔罗牌
12
package tarot
23

34
import (
@@ -114,7 +115,6 @@ func init() {
114115
msg[i] = ctxext.FakeSenderForwardNode(ctx, tarotMsg...)
115116
}
116117
ctx.SendGroupForwardMessage(ctx.Event.GroupID, msg)
117-
return
118118
})
119119

120120
engine.OnRegex(`^解塔罗牌\s?(.*)`, ctxext.DoOnceOnSuccess(
@@ -160,6 +160,5 @@ func init() {
160160
} else {
161161
ctx.SendChain(message.Text("没有找到", match, "噢~"))
162162
}
163-
return
164163
})
165164
}

0 commit comments

Comments
 (0)