From 2aefb4ed627476849fea95dad9455dfd04375345 Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 30 Jun 2014 23:28:04 +0100 Subject: [PATCH] More relevant example in server/plugininterface.js --- server/plugininterface.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.25.1