@rythra/plugins
v0.2.0
Published
Plugin contracts and extension helpers for Rythra
Readme
@rythra/plugins 🧩
Official plugin contracts and extension lifecycle registry for Rythra.
📦 Installation
bun add @rythra/plugins
# or
npm install @rythra/plugins🚀 Overview
Plugins extend public lifecycle contracts rather than depending on private core internals, keeping your bot extensions stable across Rythra releases:
import { PluginRegistry, type RythraPlugin } from '@rythra/plugins';
const registry = new PluginRegistry();
const myPlugin: RythraPlugin = {
name: 'custom-logger',
version: '1.0.0',
load(manager) {
console.log('Plugin loaded into Rythra manager!');
},
unload(manager) {
console.log('Plugin unloaded.');
}
};
registry.register(myPlugin);📄 License
MIT © Rythra Team
