Kotori Plugins ((free)) ❲Trusted❳

api.use(async (ctx, next) => ctx.content = ctx.content.trim().toLowerCase(); await next(); ); Kotori automatically merges plugin-specific config from the main config file and passes it to the plugin:

import definePlugin from 'kotori'; export default definePlugin( name: 'echo', mount(api) api.on('message', async (ctx) => if (ctx.content.startsWith('!echo ')) const text = ctx.content.slice(6); await ctx.reply(text); kotori plugins

); , unmount() console.log('Weather plugin unloaded'); ctx.content = ctx.content.trim().toLowerCase()