forked from GitHub/dbot
jimble command
This commit is contained in:
parent
287b718b17
commit
62871dc80e
@ -11,8 +11,15 @@ var words = function(dbot) {
|
|||||||
event.reply('No definitions found for ' + query);
|
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.onLoad = function() {
|
||||||
this.wn = new Wordnik({
|
this.wn = new Wordnik({
|
||||||
|
Loading…
Reference in New Issue
Block a user