forked from GitHub/dbot
what if i specifically ask for json
This commit is contained in:
parent
6817c4568b
commit
2ae2b427b0
@ -15,7 +15,9 @@ var words = function(dbot) {
|
||||
|
||||
'~etymology': function(event) {
|
||||
var query = event.params[1];
|
||||
this.wn.etymologies(encodeURIComponent(query), function(err, defs) {
|
||||
this.wn.etymologies(encodeURIComponent(query), {
|
||||
'format': 'json'
|
||||
}, function(err, defs) {
|
||||
if(!err && defs[0]) {
|
||||
event.reply(query + ' etymology: ' + defs[0]);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user