mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-22 15:36:57 +00:00
feat(shell): add receive_msgbox
config
This commit is contained in:
parent
07170f2b80
commit
c1086a704f
@ -15,7 +15,10 @@ export const msgBoxActiv = (ctx: ChronocatContext): MsgBoxActiv => {
|
|||||||
void ctx.chronocat
|
void ctx.chronocat
|
||||||
.whenReady()
|
.whenReady()
|
||||||
.then(() => ctx.chronocat.sleep(4000))
|
.then(() => ctx.chronocat.sleep(4000))
|
||||||
.then(() => {
|
.then(() => ctx.chronocat.getConfig())
|
||||||
|
.then((config) => {
|
||||||
|
if (!config.receive_msgbox) return
|
||||||
|
|
||||||
let task = fetchAndSubscribeABatchOfRecentContact({
|
let task = fetchAndSubscribeABatchOfRecentContact({
|
||||||
fetchParam: {
|
fetchParam: {
|
||||||
anchorPointContact: {
|
anchorPointContact: {
|
||||||
|
@ -16,6 +16,17 @@ export interface ChronocatBaseConfig {
|
|||||||
* @default []
|
* @default []
|
||||||
*/
|
*/
|
||||||
servers?: (ChronocatSatoriServerConfig | ChronocatSatoriWebHookConfig)[]
|
servers?: (ChronocatSatoriServerConfig | ChronocatSatoriWebHookConfig)[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @title 接收群助手消息
|
||||||
|
*
|
||||||
|
* @description 是否接收群助手内群的消息。启用时,Chronocat
|
||||||
|
* 会在应用启动后主动向 QQ
|
||||||
|
* 申请推送群助手内所有群的消息。默认启用,关闭则默认不推送群助手内群的新消息。
|
||||||
|
*
|
||||||
|
* @default true
|
||||||
|
*/
|
||||||
|
receive_msgbox?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChronocatConfig extends ChronocatBaseConfig {
|
export interface ChronocatConfig extends ChronocatBaseConfig {
|
||||||
|
Loading…
Reference in New Issue
Block a user