mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修正报错
This commit is contained in:
parent
afe314b32e
commit
e71499babc
@ -55,9 +55,10 @@ export async function roleInfo(e) {
|
||||
}
|
||||
|
||||
const send_Msg = function(e, type, name) {
|
||||
let path;
|
||||
if (type == "all") {
|
||||
for (let val of list) {
|
||||
let path = `${_path}/plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/${val}/${name}.png`
|
||||
path= `${_path}/plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/${val}/${name}.png`
|
||||
if (fs.existsSync(path)) {
|
||||
e.reply(segment.image(`file:///${path}`));
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user