优化代码结构 (#565)

This commit is contained in:
DreamZero
2023-01-30 17:42:53 +08:00
committed by GitHub
parent 07e6f33b04
commit f96b5f8965
11 changed files with 73 additions and 48 deletions

View File

@@ -122,10 +122,6 @@ func init() {
ctx.SendChain(message.Text("ERROR: 张数必须为正"))
return
}
if n > 1 && !zero.OnlyGroup(ctx) {
ctx.SendChain(message.Text("ERROR: 抽取多张仅支持群聊"))
return
}
if n > 20 {
ctx.SendChain(message.Text("ERROR: 抽取张数过多"))
return