koishi-plugin-cocoyyy-console 1.1.2-beta.0 → 1.1.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +0 -8
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1571,12 +1571,6 @@ __name(extractImageAndText, "extractImageAndText");
1571
1571
  async function checkShitOrNot(session, parttern_msg, config) {
1572
1572
  chatHistory = [];
1573
1573
  chatHistory.push({ role: "system", content: [{ type: "text", text: parttern_msg }] });
1574
- const { err, resp } = await callOpenRouter(config.api_url, config.api_key, config.api_model, chatHistory);
1575
- if (err != null) {
1576
- logger.error("[callOpenRouter Error 1]: " + err);
1577
- return null;
1578
- }
1579
- chatHistory.push({ role: "assistant", content: [{ type: "text", text: resp }] });
1580
1574
  const quoteContent = session.quote.content;
1581
1575
  logger.info("[checkShitOrNot Info]: 引用消息内容: " + quoteContent);
1582
1576
  const { imageUrls, text } = extractImageAndText(quoteContent);
@@ -1627,8 +1621,6 @@ son判断模式列表:
1627
1621
  ctx.command("son <参数>", "判定是否为史").action(async ({ session }, ...args) => {
1628
1622
  if (!dev_mode) {
1629
1623
  if (!is_at_bot_quote(session)) return "请提供正确格式,如: [引用消息] @bot son [判断模式]";
1630
- } else {
1631
- if (!session.quote) return "请引用消息后使用功能";
1632
1624
  }
1633
1625
  if (think_flag) return "请等待思考结果";
1634
1626
  const parttern = args?.[0];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-cocoyyy-console",
3
3
  "description": "自用koishi插件,功能包含复读,记录黑历史,*人等",
4
- "version": "1.1.2-beta.0",
4
+ "version": "1.1.2-beta.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [