Commit 3a7e09ba authored by nanahira's avatar nanahira

add assets support

parent cd023f0a
...@@ -206,6 +206,9 @@ export class PicsPlugin { ...@@ -206,6 +206,9 @@ export class PicsPlugin {
if (result.description) { if (result.description) {
msg += `\n${result.description}`; msg += `\n${result.description}`;
} }
if (ctx.assets) {
msg = await ctx.assets.transform(msg);
}
return msg; return msg;
}) })
.subcommand('.sources', '查询图源列表') .subcommand('.sources', '查询图源列表')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment