install method
Installs the plugin on the given bot.
This method should:
- Add any required middleware using
bot.use()
- Add any required transformers using
bot.api.use()
- Set up any necessary configurations
- Register any event handlers
This method is called once when the plugin is installed via
bot.plugin()
. It should not be called directly.
Parameters:
bot
: The bot instance to install the plugin on
Implementation
@override
void install(Bot<CTX> bot) {
bot.api.use(transformer);
}