feat(shell): add receive_msgbox config

This commit is contained in:
Il Harper 2024-03-17 02:48:40 +08:00
parent 07170f2b80
commit c1086a704f
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC
2 changed files with 15 additions and 1 deletions

View File

@ -15,7 +15,10 @@ export const msgBoxActiv = (ctx: ChronocatContext): MsgBoxActiv => {
void ctx.chronocat
.whenReady()
.then(() => ctx.chronocat.sleep(4000))
.then(() => {
.then(() => ctx.chronocat.getConfig())
.then((config) => {
if (!config.receive_msgbox) return
let task = fetchAndSubscribeABatchOfRecentContact({
fetchParam: {
anchorPointContact: {

View File

@ -16,6 +16,17 @@ export interface ChronocatBaseConfig {
* @default []
*/
servers?: (ChronocatSatoriServerConfig | ChronocatSatoriWebHookConfig)[]
/**
* @title
*
* @description Chronocat
* QQ
*
*
* @default true
*/
receive_msgbox?: boolean
}
export interface ChronocatConfig extends ChronocatBaseConfig {