This commit is contained in:
parent
6bf584ac9d
commit
151331e36d
|
@ -66,7 +66,7 @@ export class calculator extends plugin {
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
/** 生成图片 */
|
/** 生成图片 */
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ?'StarRail/calculator':'calculator', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}calculator`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class dailyNote extends plugin {
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
/** 生成图片 */
|
/** 生成图片 */
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/dailyNote' : 'dailyNote', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}dailyNote`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ export class gcLog extends plugin {
|
||||||
let data = await new GachaLog(this.e).logUrl()
|
let data = await new GachaLog(this.e).logUrl()
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/gachaLog' : 'gachaLog', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}gachaLog`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ export class gcLog extends plugin {
|
||||||
|
|
||||||
if (typeof data != 'object') return
|
if (typeof data != 'object') return
|
||||||
|
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/gachaLog' : 'gachaLog', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}gachaLog`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ export class gcLog extends plugin {
|
||||||
let data = await new GachaLog(this.e).getLogData()
|
let data = await new GachaLog(this.e).getLogData()
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/gachaLog' : 'gachaLog', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}gachaLog`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ export class gcLog extends plugin {
|
||||||
let data = await new LogCount(this.e).count()
|
let data = await new LogCount(this.e).count()
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/logCount' : 'logCount', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}logCount`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ export class ledger extends plugin {
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
/** 生成图片 */
|
/** 生成图片 */
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ?'StarRail/ledger':'ledger', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}ledger`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ export class ledger extends plugin {
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
/** 生成图片 */
|
/** 生成图片 */
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ?'StarRail/ledgerCount':'ledgerCount', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}ledgerCount`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ export class ledger extends plugin {
|
||||||
if (!data) return
|
if (!data) return
|
||||||
|
|
||||||
/** 生成图片 */
|
/** 生成图片 */
|
||||||
let img = await puppeteer.screenshot(this.e.isSr ? 'StarRail/ledgerCount' : 'ledgerCount', data)
|
let img = await puppeteer.screenshot(`${data.srtempFile}ledgerCount`, data)
|
||||||
if (img) await this.reply(img)
|
if (img) await this.reply(img)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,8 @@ export default class base {
|
||||||
tplFile: `./plugins/genshin/resources/StarRail/html/${this.model}/${this.model}.html`,
|
tplFile: `./plugins/genshin/resources/StarRail/html/${this.model}/${this.model}.html`,
|
||||||
/** 绝对路径 */
|
/** 绝对路径 */
|
||||||
pluResPath: `${this._path}/plugins/genshin/resources/StarRail/`,
|
pluResPath: `${this._path}/plugins/genshin/resources/StarRail/`,
|
||||||
headStyle: `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-position-x: -10px; background-repeat: no-repeat; background-size: 540px; background-position-y: -100px; </style>`
|
headStyle: `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/StarRail/img/worldcard/星穹列车.png) #fff; background-position-x: -10px; background-repeat: no-repeat; background-size: 540px; background-position-y: -100px; </style>`,
|
||||||
|
srtempFile: 'StarRail/'
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -36,7 +37,8 @@ export default class base {
|
||||||
tplFile: `./plugins/genshin/resources/html/${this.model}/${this.model}.html`,
|
tplFile: `./plugins/genshin/resources/html/${this.model}/${this.model}.html`,
|
||||||
/** 绝对路径 */
|
/** 绝对路径 */
|
||||||
pluResPath: `${this._path}/plugins/genshin/resources/`,
|
pluResPath: `${this._path}/plugins/genshin/resources/`,
|
||||||
headStyle: `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/img/namecard/${headImg}.png) #fff; background-position-x: 42px; background-repeat: no-repeat; background-size: auto 101%; }</style>`
|
headStyle: `<style> .head_box { background: url(${this._path}/plugins/genshin/resources/img/namecard/${headImg}.png) #fff; background-position-x: 42px; background-repeat: no-repeat; background-size: auto 101%; }</style>`,
|
||||||
|
srtempFile: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue