diff --git a/modules/words/words.js b/modules/words/words.js index eac90b0..d26a648 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -11,8 +11,15 @@ var words = function(dbot) { event.reply('No definitions found for ' + query); } }); - } + }, + + '~jimble': function(event) { + event.reply(event.params[1].split('').sort(function() { + return (Math.round(Math.random()) - 0.5); + }).join('')); + } }; + this.commands['~jimble'].regex = [/^~jimble (.+)$/, 2]; this.onLoad = function() { this.wn = new Wordnik({