// plugins/template.js - Template for creating new plugins module.exports = { // Called when plugin is loaded init(bot) { console.log('Template plugin initialized'); // You can store references, setup timers, etc. this.bot = bot; }, // Called when plugin is unloaded/reloaded cleanup(bot) { console.log('Template plugin cleaned up'); // Clean up timers, connections, etc. }, // Event handlers (optional) onMessage(data, bot) { // Called for every message // data contains: nick, user, host, target, message, isChannel, replyTo // Uncomment and use parameters as needed: // console.log(`Message from ${data.nick}: ${data.message}`); }, // Commands array commands: [ { name: 'example', description: 'An example command', execute(context, bot) { // context contains: nick, user, host, channel, replyTo, args, fullMessage // bot is the IRCBot instance with methods like say(), action(), notice() bot.say(context.replyTo, `Hello ${context.nick}!`); } } ] };