Commit df6c1b86 authored by nanahira's avatar nanahira

fix cqcode again

parent bfd11dbf
......@@ -89,7 +89,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:image,url=${sessionUrl}]${messageSuffix}`;
const messageOnebot = `[CQ:xml,data=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><msg serviceID="1"><item><title>${messageSuffix}</title></item><source name="窥屏检测" icon="${sessionUrl}" action="" appid="-1" /></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