New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koishi-plugin-teach

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-teach - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

4

dist/internal.js

@@ -75,6 +75,8 @@ "use strict";

ctx.on('dialogue/before-modify', async ({ options, meta, target }) => {
if (target)
return;
if (options.probability === undefined) {
options.probability = 1;
}
if (!target && !(options.question && options.answer)) {
if (!options.question || !options.answer) {
await meta.$send('缺少问题或回答,请检查指令语法。');

@@ -81,0 +83,0 @@ return true;

@@ -84,2 +84,3 @@ "use strict";

return meta.$send(`没有搜索到问答“${question}”“${answer}”,请尝试使用关键词匹配。`);
argv.dialogues = dialogues;
await ctx.serialize('dialogue/before-detail', argv);

@@ -86,0 +87,0 @@ return utils_1.sendDetail(ctx, dialogue, argv);

{
"name": "koishi-plugin-teach",
"description": "Teach plugin for Koishi",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"main": "dist/index.js",

@@ -34,11 +34,11 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"koishi-database-level": "^2.0.0-alpha.5",
"koishi-database-memory": "^2.0.0-alpha.5",
"koishi-database-mysql": "^2.0.0-alpha.5",
"koishi-test-utils": "^4.0.0-alpha.5"
"koishi-database-level": "^2.0.0-alpha.6",
"koishi-database-memory": "^2.0.0-alpha.6",
"koishi-database-mysql": "^2.0.0-alpha.6",
"koishi-test-utils": "^4.0.0-alpha.6"
},
"dependencies": {
"koishi-core": "^2.0.0-alpha.5",
"koishi-core": "^2.0.0-alpha.6",
"koishi-utils": "^1.0.5"
}
}

@@ -81,2 +81,4 @@ import { Context } from 'koishi-core'

ctx.on('dialogue/before-modify', async ({ options, meta, target }) => {
if (target) return
if (options.probability === undefined) {

@@ -86,3 +88,3 @@ options.probability = 1

if (!target && !(options.question && options.answer)) {
if (!options.question || !options.answer) {
await meta.$send('缺少问题或回答,请检查指令语法。')

@@ -89,0 +91,0 @@ return true

@@ -89,2 +89,3 @@ import { TeachArgv, sendDetail, getDialogues } from './utils'

if (!dialogue) return meta.$send(`没有搜索到问答“${question}”“${answer}”,请尝试使用关键词匹配。`)
argv.dialogues = dialogues
await ctx.serialize('dialogue/before-detail', argv)

@@ -91,0 +92,0 @@ return sendDetail(ctx, dialogue, argv)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc