修复初始化报错

This commit is contained in:
Le-niao 2022-07-15 17:08:45 +08:00
parent 449d3cd656
commit b07807a0d0

View File

@ -3,6 +3,12 @@ import Note from '../model/note.js'
import MysSign from '../model/mysSign.js'
import gsCfg from '../model/gsCfg.js'
import puppeteer from '../../../lib/puppeteer/puppeteer.js'
import fs from 'node:fs'
let set = './plugins/genshin/config/mys.set.yaml'
if (!fs.existsSync(set)) {
fs.copyFileSync('./plugins/genshin/defSet/mys/set.yaml', set)
}
export class dailyNote extends plugin {
constructor () {