Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lipraty/koishi-plugin-finder
https://github.com/lipraty/koishi-plugin-finder
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lipraty/koishi-plugin-finder
- Owner: Lipraty
- License: agpl-3.0
- Created: 2024-02-23T09:35:36.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-01T15:45:02.000Z (10 months ago)
- Last Synced: 2024-10-11T15:02:47.092Z (3 months ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# koishi-plugin-finder
[![npm](https://img.shields.io/npm/v/koishi-plugin-finder?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-finder)
Now command, fast `Finder`
## Install
Install the plugin from market in the koishi-(desktop/android/docker):
- Open your koishi market
- Search `finder`
- Click the install button
- Open your plugin configuration page and enable the pluginInstall the plugin from the boilerplate workspace:
```bash
yarn add koishi-plugin-finder
```## API
### Class: `Finder`
Access via `ctx.finder`.
#### `finder.registerAction(name, action)`
- `name` string: The name of the action.
- `action` function: The action to be registered.Register a new action for the Finder.
## Configuration
### `unsafe`
- Type: `boolean`
- Default: `false`Allow blocks registered by other plugins to be used in the finder.
### `maxSteps`
- Type: `number`
- Default: `8`The maximum number of steps that the finder action block can take.
## License
This project is licensed under the [AGPL-3.0](./LICENSE) license.