diff --git a/modules/words/words.js b/modules/words/words.js index e980115..b7eab52 100644 --- a/modules/words/words.js +++ b/modules/words/words.js @@ -16,9 +16,8 @@ var words = function(dbot) { '~etymology': function(event) { var query = event.params[1]; this.wn.etymologies(encodeURIComponent(query), function(err, defs) { - console.log(defs); if(!err && defs[0]) { - event.reply(query + ' etymology: ' + defs[0].text); + event.reply(query + ' etymology: ' + defs[0].replace(/<\/?[^>]+(>|$)/g, ""); } else { event.reply('No etymology found for ' + query); }