Commit ba0b6fc5 authored by nanahira's avatar nanahira

fix cqcode again

parent c184b6b6
...@@ -93,7 +93,7 @@ export default class WhoViewsPlugin extends StarterPlugin( ...@@ -93,7 +93,7 @@ export default class WhoViewsPlugin extends StarterPlugin(
const messageSuffix = `让我 ${this.config.waitTime} 秒后康康谁在窥屏。`; const messageSuffix = `让我 ${this.config.waitTime} 秒后康康谁在窥屏。`;
if (session.platform === 'onebot') { if (session.platform === 'onebot') {
const bot = session.bot as OneBotBot; const bot = session.bot as OneBotBot;
const messageOnebot = `[CQ:cardimage,file=${sessionUrl},source=${messageSuffix},icon=${sessionUrl}]`; const messageOnebot = `[CQ:cardimage,file=${picUrl},source=${messageSuffix},icon=${sessionUrl}]`;
if (session.guildId) { if (session.guildId) {
await bot.internal.sendGroupMsg(session.guildId, messageOnebot); await bot.internal.sendGroupMsg(session.guildId, messageOnebot);
} else { } 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