mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 修改禁言时间范围
This commit is contained in:
parent
188dcbcf9c
commit
be7ceafb4b
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,12 @@ export class JinyanTool extends AbstractTool {
|
||||||
|
|
||||||
func = async function (opts) {
|
func = async function (opts) {
|
||||||
let { qq, groupId, time = '600' } = opts
|
let { qq, groupId, time = '600' } = opts
|
||||||
|
if (time < 60) {
|
||||||
|
time = 60
|
||||||
|
}
|
||||||
|
if (time > 86400 * 30) {
|
||||||
|
time = 86400 * 30
|
||||||
|
}
|
||||||
let group = await Bot.pickGroup(groupId)
|
let group = await Bot.pickGroup(groupId)
|
||||||
time = parseInt(time.trim())
|
time = parseInt(time.trim())
|
||||||
if (qq.trim() === 'all') {
|
if (qq.trim() === 'all') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue