fix: task format

This commit is contained in:
ikechan8370 2025-02-06 23:38:40 +08:00
parent e67a145635
commit c1dd406b62

View file

@ -363,17 +363,17 @@ export class ChatgptManagement extends plugin {
reg: '^#(chatgpt)?(Copilot|Bing|必应)配置方法', reg: '^#(chatgpt)?(Copilot|Bing|必应)配置方法',
fnc: 'copilotSetting' fnc: 'copilotSetting'
} }
],
task: [
{
cron: '0 */2 * * * ?',
// cron: '*/1 * * * *',
name: 'refreshBingAi',
fnc: 'refreshBingAi',
log: false
}
] ]
}) })
this.task = [
{
cron: '0 */2 * * * ?',
// cron: '*/1 * * * *',
name: 'refreshBingAi',
fnc: this.refreshBingAi,
log: false
}
]
this.reply = async (msg, quote, data) => { this.reply = async (msg, quote, data) => {
if (!Config.enableMd) { if (!Config.enableMd) {
return e.reply(msg, quote, data) return e.reply(msg, quote, data)