commit
2af6575875
|
@ -60,12 +60,20 @@ export class mysNews extends plugin {
|
||||||
this.file = './plugins/genshin/config/mys.pushNews.yaml'
|
this.file = './plugins/genshin/config/mys.pushNews.yaml'
|
||||||
|
|
||||||
/** 定时任务 */
|
/** 定时任务 */
|
||||||
this.task = {
|
this.task = [
|
||||||
|
{
|
||||||
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
||||||
name: '米游社公告推送任务',
|
name: '米游社公告推送任务',
|
||||||
fnc: () => this.mysNewsTask(),
|
fnc: () => this.mysNewsTask(),
|
||||||
log: false
|
log: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
||||||
|
name: '崩坏星穹铁道公告推送任务',
|
||||||
|
fnc: () => this.srmysNewsTask(),
|
||||||
|
log: false
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
async init () {
|
async init () {
|
||||||
|
@ -87,7 +95,7 @@ export class mysNews extends plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
async mysNewsTask () {
|
async mysNewsTask () {
|
||||||
let mysNews = new srNews(this.e)
|
let mysNews = new MysNews(this.e)
|
||||||
await mysNews.mysNewsTask()
|
await mysNews.mysNewsTask()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue