@sein3826/koishi-plugin-randompic
v0.1.1
Published
A Koishi plugin that sends random images from configured galleries.
Maintainers
Readme
@sein3826/koishi-plugin-randompic
A Koishi plugin that sends truly random images from local galleries. The plugin bootstraps its working directories automatically so that users only need to drop images into folders.
Features
- Automatically creates gallery folders under the configured root path on startup.
- Allows mapping multiple Koishi commands to one or more gallery folders.
- Supports per-command limits and optional recursive directory scanning.
- Sends images via
session.sendorsession.sendQueueddepending on configuration.
Installation
npm install @sein3826/koishi-plugin-randompicUsage
- Install the plugin and add it to your Koishi bot configuration.
- Configure the
rootdirectory and definecommandsin the plugin settings. - Place image files in the generated gallery folders.
- Use the registered Koishi commands to receive random images.
See the configuration schema in src/index.ts for all available options.
Development
npm install
npm run buildThe compiled files will be emitted to the lib/ directory.
