forked from GitHub/dbot
like
This commit is contained in:
parent
0cf845f099
commit
2d8a1da470
@ -65,8 +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(!String(defs[0]).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,
|
||||||
'definition': defs[0].text
|
'definition': defs[0].text
|
||||||
|
Loading…
Reference in New Issue
Block a user