Commit 9546180d authored by nanahira's avatar nanahira

fix cqcode again

parent dae5506e
......@@ -93,7 +93,7 @@ export default class WhoViewsPlugin extends StarterPlugin(
const messageSuffix = `让我 ${this.config.waitTime} 秒后康康谁在窥屏。`;
if (session.platform === 'onebot') {
const bot = session.bot as OneBotBot;
const messageOnebot = `[CQ:cardimage,file=${picUrl},source=${messageSuffix},icon=${sessionUrl}]`;
const messageOnebot = `[CQ:xml,data=<?xml version="1.0" encoding="utf-8"?><msg templateID="12345" action="" brief="&#91;分享&#93;我看到一张很赞的图片,分享给你,快来看!" serviceID="5" url=""><item layout="0" advertiser_id="0" aid="0"><summary>${messageSuffix}</summary><picture cover="${sessionUrl}"/></item></msg>]`;
if (session.guildId) {
await bot.internal.sendGroupMsg(session.guildId, messageOnebot);
} else {
......
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