mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:攻略使用名称
This commit is contained in:
parent
38ee053bbc
commit
08c15fd378
1 changed files with 2 additions and 2 deletions
|
|
@ -40,14 +40,14 @@ export class Guide extends ZZZPlugin {
|
||||||
await this.reply('该角色不存在');
|
await this.reply('该角色不存在');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const filename = `role_guide_${name}.png`;
|
const filename = `role_guide_${id}.png`;
|
||||||
const guidePath = path.join(ZZZ_GUIDES_PATH, filename);
|
const guidePath = path.join(ZZZ_GUIDES_PATH, filename);
|
||||||
if (fs.existsSync(guidePath)) {
|
if (fs.existsSync(guidePath)) {
|
||||||
await this.e.reply(segment.image(`file://${guidePath}`));
|
await this.e.reply(segment.image(`file://${guidePath}`));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//目前攻略较少,暂为1
|
//目前攻略较少,暂为1
|
||||||
if (await this.getImg(name, 1)) {
|
if (await this.getImg(id, 1)) {
|
||||||
await this.e.reply(segment.image(`file://${guidePath}`))
|
await this.e.reply(segment.image(`file://${guidePath}`))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue