mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
merge
This commit is contained in:
commit
77eec1e07f
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"autoTitle": true,
|
"autoTitle": true,
|
||||||
"dependencies": [ "command" ],
|
"ignorable": true,
|
||||||
"ignorable": true
|
"outputPrefix": "\u00034link\u000f",
|
||||||
|
"help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md"
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ var link = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.api.getTitle(link, function(title) {
|
this.api.getTitle(link, function(title) {
|
||||||
event.reply(title);
|
event.reply(dbot.t('link', { 'link': title} ));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ var link = function(dbot) {
|
|||||||
try {
|
try {
|
||||||
if (response.statusCode == "200") {
|
if (response.statusCode == "200") {
|
||||||
data = JSON.parse(body);
|
data = JSON.parse(body);
|
||||||
event.reply(dbot.t("xkcd",data));
|
event.reply(dbot.t("xkcd", data));
|
||||||
} else {
|
} else {
|
||||||
event.reply(dbot.t("no-hits"));
|
event.reply(dbot.t("no-hits"));
|
||||||
}
|
}
|
||||||
|
@ -11,5 +11,8 @@
|
|||||||
"en": "No hits.",
|
"en": "No hits.",
|
||||||
"na'vi": "Oel ke tsun rivum ayuoti.",
|
"na'vi": "Oel ke tsun rivum ayuoti.",
|
||||||
"nl": "Geen resultaten."
|
"nl": "Geen resultaten."
|
||||||
|
},
|
||||||
|
"link": {
|
||||||
|
"en": "{link}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user