koishi-plugin-common
Advanced tools
Comparing version 4.2.6 to 4.2.7
@@ -486,3 +486,3 @@ var __create = Object.create; | ||
} else { | ||
await bot.sendMessage(id, message); | ||
await bot.sendMessage(id, message, "unknown"); | ||
} | ||
@@ -503,3 +503,3 @@ return; | ||
const delay = ctx.app.options.delay.broadcast; | ||
const data = [session.sid, session.channelId]; | ||
const data = [session.sid, session.channelId, session.groupId]; | ||
for (let index = 0; index < operators.length; ++index) { | ||
@@ -521,3 +521,3 @@ if (index && delay) | ||
return next(); | ||
return ctx.bots[data[0]].sendMessage(data[1], parsed.content); | ||
return ctx.bots[data[0]].sendMessage(data[1], parsed.content, data[2]); | ||
}); | ||
@@ -563,3 +563,3 @@ } | ||
const content = (0, import_koishi_utils2.template)("common.relay", session.username, session.parsed.content); | ||
const id = await bot.sendMessage(channelId, content); | ||
const id = await bot.sendMessage(channelId, content, "unknown"); | ||
relayMap[id] = {source: destination, destination: session.cid, selfId: session.selfId, lifespan}; | ||
@@ -566,0 +566,0 @@ setTimeout(() => delete relayMap[id], lifespan); |
{ | ||
"name": "koishi-plugin-common", | ||
"description": "Common plugins for Koishi", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"main": "lib/index.js", | ||
@@ -33,3 +33,3 @@ "typings": "lib/index.d.ts", | ||
"peerDependencies": { | ||
"koishi-core": "^3.11.0", | ||
"koishi-core": "^3.12.0", | ||
"koishi-utils": "^4.2.2" | ||
@@ -36,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
81837