node bot.js
var GUID = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);
return v.toString(16);
});
module.exports = {
fn1: function() { /* ... */ },
fn2: function() { /* ... */ },
fn3: function() { /* ... */ }
};
module.exports = {};
module.exports.fn1 = function() { /* ... */ };
module.exports.fn2 = function() { /* ... */ };
module.exports.fn3 = function() { /* ... */ };
var moduleName = {};
module.exports = moduleName;
moduleName.fn1 = function() { /* ... */ };
moduleName.fn2 = function() { /* ... */ };
moduleName.fn3 = function() { /* ... */ };
var events = require('events');
var moduleName = new events.EventEmitter();
module.exports = moduleName;
moduleName.fn1 = function() {};
moduleName.on('event1', function(par1, par2) {});