jimble command

This commit is contained in:
reality 2013-07-08 11:02:27 +00:00
parent 287b718b17
commit 62871dc80e

View File

@ -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({