merge nicks

This commit is contained in:
reality 2015-05-01 07:58:36 +00:00
parent 10f853c921
commit a9dff5c39e

View File

@ -107,6 +107,10 @@ var words = function(dbot) {
event.reply(event.params[1].split('').sort(function() {
return (Math.round(Math.random()) - 0.5);
}).join(''));
},
'~merge': function(event) {
var a = event.params[1]; var b = event.params[2]; event.reply(a.slice(0,_.random(1,a.length)) + b.slice(_.random(b.length-1)));
}
};
this.commands['~jimble'].regex = [/^jimble (.+)$/, 2];