mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: 修复解除禁言的bug
This commit is contained in:
parent
0279171204
commit
125d170f08
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue