diff --git a/modules/link/config.json b/modules/link/config.json index d57c4cf..a7ccc37 100644 --- a/modules/link/config.json +++ b/modules/link/config.json @@ -1,5 +1,6 @@ { "autoTitle": true, - "dependencies": [ "command" ], - "ignorable": true + "ignorable": true, + "outputPrefix": "\u00034link\u000f", + "help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md" } diff --git a/modules/link/link.js b/modules/link/link.js index 2ce7e56..0d686b3 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -53,7 +53,7 @@ var link = function(dbot) { } } 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 { if (response.statusCode == "200") { data = JSON.parse(body); - event.reply(dbot.t("xkcd",data)); + event.reply(dbot.t("xkcd", data)); } else { event.reply(dbot.t("no-hits")); } diff --git a/modules/link/strings.json b/modules/link/strings.json index fcef28f..38d8aba 100644 --- a/modules/link/strings.json +++ b/modules/link/strings.json @@ -11,5 +11,8 @@ "en": "No hits.", "na'vi": "Oel ke tsun rivum ayuoti.", "nl": "Geen resultaten." + }, + "link": { + "en": "{link}" } }