From a9dff5c39efdd9b7fd0d01180541c88af3789e5d Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 1 May 2015 07:58:36 +0000 Subject: [PATCH] merge nicks --- modules/words/words.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/words/words.js b/modules/words/words.js index 0917d7a..92014aa 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -107,7 +107,11 @@ 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];