Hey, which is more efficient?
or
PHP:
registerPlugin....
var engine = require('engine');
sinusbot.on('chat', function(ev) {
engine.log('Hello from a script!');
});
sinusbot.on('poke', function(ev) {
engine.log('We got poked by ' + ev.clientNick + ': ' + ev.msg);
});
or
PHP:
registerPlugin....
sinusbot.on('chat', function(ev) {
var engine = require('engine');
engine.log('Hello from a script!');
});
sinusbot.on('poke', function(ev) {
var engine = require('engine');
engine.log('We got poked by ' + ev.clientNick + ': ' + ev.msg);
});