From: Darren Date: Mon, 30 Jun 2014 22:28:04 +0000 (+0100) Subject: More relevant example in server/plugininterface.js X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2aefb4ed627476849fea95dad9455dfd04375345;p=KiwiIRC.git More relevant example in server/plugininterface.js --- diff --git a/server/plugininterface.js b/server/plugininterface.js index 16d3d96..070d05d 100644 --- a/server/plugininterface.js +++ b/server/plugininterface.js @@ -222,7 +222,7 @@ var modules = new PluginInterface(); // A plugin -modules.on('client:command', function (event, data) { +modules.on('irc message', function (event, data) { //event.wait = true; setTimeout(event.callback, 2000); }); @@ -236,8 +236,7 @@ var data = { command: '/dothis' }; - -modules.emit('client:command', data).done(function () { +modules.emit('irc message', data).done(function () { console.log('Your command is: ' + data.command); }); */ \ No newline at end of file