3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
This commit is contained in:
reality 2014-11-29 05:08:26 +00:00
parent f0398fe8fc
commit 0cf845f099

View File

@ -65,6 +65,7 @@ var words = function(dbot) {
if(!err && word) { if(!err && word) {
this.wn.definitions(encodeURIComponent(word.word), function(err, defs) { this.wn.definitions(encodeURIComponent(word.word), function(err, defs) {
if(!err && defs[0]) { if(!err && defs[0]) {
console.log(defs[0].toString());
if(!defs[0].toString().match(/plural/i)) { if(!defs[0].toString().match(/plural/i)) {
event.reply(dbot.t('def', { event.reply(dbot.t('def', {
'word': word.word, 'word': word.word,