mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
db
This commit is contained in:
parent
563a9adaf9
commit
5c34719ad1
@ -16,6 +16,7 @@ var words = function(dbot) {
|
|||||||
'~etymology': function(event) {
|
'~etymology': function(event) {
|
||||||
var query = event.params[1];
|
var query = event.params[1];
|
||||||
this.wn.etymologies(encodeURIComponent(query), function(err, defs) {
|
this.wn.etymologies(encodeURIComponent(query), function(err, defs) {
|
||||||
|
console.log(defs);
|
||||||
if(!err && defs[0]) {
|
if(!err && defs[0]) {
|
||||||
event.reply(query + ' etymology: ' + defs[0].text);
|
event.reply(query + ' etymology: ' + defs[0].text);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user