mirror of
https://github.com/reality/dbot.git
synced 2024-12-27 05:02:36 +01:00
like
This commit is contained in:
parent
f0398fe8fc
commit
0cf845f099
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user