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.4 to 1.1.0

2

dist/receiver.d.ts

@@ -75,4 +75,4 @@ import { Context, User, Session, NextFunction } from 'koishi-core';

}
export declare function triggerDialogue(ctx: Context, session: Session, config: Dialogue.Config, next?: NextFunction): Promise<void>;
export declare function triggerDialogue(ctx: Context, session: Session, next?: NextFunction): Promise<void>;
export default function (ctx: Context, config: Dialogue.Config): void;
export {};

@@ -98,3 +98,3 @@ "use strict";

exports.MessageBuffer = MessageBuffer;
async function triggerDialogue(ctx, session, config, next = koishi_utils_1.noop) {
async function triggerDialogue(ctx, session, next = koishi_utils_1.noop) {
const state = ctx.getSessionState(session);

@@ -202,3 +202,7 @@ state.next = next;

ctx.group().middleware(async (session, next) => {
return triggerDialogue(ctx, session, config, next);
return session.$execute({
command: 'dialogue',
args: [session.message],
next,
});
});

@@ -227,3 +231,3 @@ ctx.on('dialogue/receive', ({ session, test }) => {

});
ctx.group().command('teach/dialogue <message...>', '触发教学对话')
ctx.group().command('dialogue <message...>', '触发教学对话')
.action(async ({ session, next }, message = '') => {

@@ -233,3 +237,3 @@ if (session._redirected > maxRedirections)

session.message = message;
return triggerDialogue(ctx, session, config, next);
return triggerDialogue(ctx, session, next);
});

@@ -236,0 +240,0 @@ }

{
"name": "koishi-plugin-teach",
"description": "Teach plugin for Koishi",
"version": "1.0.4",
"version": "1.1.0",
"main": "dist/index.js",

@@ -41,3 +41,3 @@ "typings": "dist/index.d.ts",

"peerDependencies": {
"koishi-core": "^2.2.2"
"koishi-core": "^2.3.0"
},

@@ -44,0 +44,0 @@ "devDependencies": {

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