3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

prefix for link [#462]

This commit is contained in:
reality 2013-05-21 17:45:58 +00:00
parent 36d40f65a3
commit 1f426fa722
3 changed files with 6 additions and 2 deletions

View File

@ -2,5 +2,6 @@
"autoTitle": false, "autoTitle": false,
"dependencies": [ "command" ], "dependencies": [ "command" ],
"ignorable": true, "ignorable": true,
"outputPrefix": "\u00034link\u000f"
"help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md" "help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md"
} }

View File

@ -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} ));
}); });
}, },

View File

@ -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}"
} }
} }