Skip to content

Commit

Permalink
fix: 修复解除禁言的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jun 24, 2023
1 parent 0279171 commit 125d170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/tools/JinyanTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class JinyanTool extends AbstractTool {
let { qq, groupId, time = '600', sender, isAdmin, isPunish } = opts
let group = await Bot.pickGroup(groupId)
time = parseInt(time.trim())
if (time < 60) {
if (time < 60 && time !== 0) {
time = 60
}
if (time > 86400 * 30) {
Expand Down

0 comments on commit 125d170

Please sign in to comment.