npx kotori
Plugins typically define commands that trigger specific actions. Kotori uses a decorator or registration pattern for this. kotori plugins
export default definePlugin( name: 'weather', version: '1.0.0', mount(api) api.on('message', async (ctx) => if (ctx.content.startsWith('!weather')) const city = ctx.content.split(' ')[1]; const weather = await fetchWeather(city); await ctx.reply( Weather in $city: $weather ); npx kotori Plugins typically define commands that trigger