mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 21:22:39 +01:00
syntax is important
This commit is contained in:
parent
b008f28406
commit
e0c2ec36f8
@ -17,7 +17,8 @@ var words = function(dbot) {
|
||||
var query = event.params[1];
|
||||
this.wn.etymologies(encodeURIComponent(query), function(err, defs) {
|
||||
if(!err && defs[0]) {
|
||||
event.reply(query + ' etymology: ' + defs[0].replace(/<\/?[^>]+(>|$)/g, "");
|
||||
event.reply(query + ' etymology: ' +
|
||||
defs[0].replace(/<\/?[^>]+(>|$)/g, ""));
|
||||
} else {
|
||||
event.reply('No etymology found for ' + query);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user