新增对群聊黑白名单和启禁用私聊的功能,添加对全局回复模式、语音角色和主动打招呼的指令配置。 (#341)

* feat: add support for ‘greeting’ and ‘global reply mode’ commands, improve variable naming and remove unnecessary backend output.

* feat: Add support for black and white lists, global reply mode and voice role settings, private chat switch, and active greeting configuration. Refactor some variable names and comment out redundant code for better readability and reduced backend output.

* feat: 为新功能完善了帮助面板

* docs: 完善了‘打招呼’的帮助说明

* feature:Add custom configuration for voice filtering regex.

---------

Co-authored-by: Sean <1519059137@qq.com>
This commit is contained in:
Sean Murphy 2023-04-13 22:36:58 +08:00 committed by GitHub
parent 11a62097f0
commit 4b29e261a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1190 additions and 802 deletions

View file

@ -11,6 +11,7 @@ import schedule from 'node-schedule'
import { Config } from '../utils/config.js'
import { randomString, getPublicIP } from '../utils/common.js'
const __dirname = path.resolve()
const server = fastify({
logger: Config.debug
@ -208,6 +209,7 @@ export async function createServer() {
if(request.method == 'GET')
Statistics.WebAccess.count += 1
done()
})
//定时任务
var rule = new schedule.RecurrenceRule();
@ -235,4 +237,4 @@ export async function createServer() {
}
server.log.info(`server listening on ${server.server.address().port}`)
})
}
}