diff --git a/plugins.md b/plugins.md index f29edbc6..92832dab 100644 --- a/plugins.md +++ b/plugins.md @@ -9,7 +9,7 @@ A plugin is a js file with a header. for example: ```js //@name exampleplugin -//display-name: Example Plugin +//@display-name Example Plugin // Plugin code here ``` @@ -118,7 +118,7 @@ Adds a risu script handler to the plugin. - `type: string` - The handler type. one of `display`, `output`, `input`, `process` - `display` - The handler will be called when the data is displayed. - `output` - The handler will be called when the data is outputted by the AI model. - - `input` - The handler will be called when the data is inputted to the user. + - `input` - The handler will be called when the data is inputted by the user. - `process` - The handler will be called when creating actual request data. - `func: (content:string) => string|null|undefined|Promise` - The handler function. - `content: string` - The content to handle. @@ -163,4 +163,4 @@ The plugin system has been updated to V2. The following changes have been made: - `addCharaJs` function has been removed. use `addRisuScriptHandler` instead. - `risuLog` function has been removed. use `console.log` instead. - Many security restrictions have been removed. - - `@risu-name`, `@risu-display-name`, `@risu-arg` headers has been removed. use `@name`, `@display-name`, `@arg` instead. if it's not present, it will be ran as V1 plugin. \ No newline at end of file + - `@risu-name`, `@risu-display-name`, `@risu-arg` headers has been removed. use `@name`, `@display-name`, `@arg` instead. if it's not present, it will be ran as V1 plugin.