3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

add link output to qadd

This commit is contained in:
reality 2014-06-19 15:22:25 +00:00
parent ad0133b948
commit 3250e25aa0
2 changed files with 10 additions and 9 deletions

View File

@ -16,7 +16,8 @@ var commands = function(dbot) {
dbot.api.event.emit('~qadd', [ key, quote ]); dbot.api.event.emit('~qadd', [ key, quote ]);
event.reply(dbot.t('quote_saved', { event.reply(dbot.t('quote_saved', {
'category': key, 'category': key,
'count': newCount 'count': newCount,
'link': dbot.api.web.getUrl('quotes/' + encodeURIComponent(key))
})); }));
} else { } else {
event.reply(dbot.t('quote_exists')); event.reply(dbot.t('quote_exists'));

View File

@ -130,14 +130,14 @@
"it": "La citazone esiste già nella base dei data. Iniziare l' incenerimento" "it": "La citazone esiste già nella base dei data. Iniziare l' incenerimento"
}, },
"quote_saved": { "quote_saved": {
"en": "Quote saved in '{category}' ({count}).", "en": "Quote saved in '{category}' ({count}) - {link}",
"es": "Cita guardada en '{category}' ({count}).", "es": "Cita guardada en '{category}' ({count}) - {link}",
"na'vi": "Oe zayerok '{category}'mì ({count}).", "na'vi": "Oe zayerok '{category}'mì ({count}) - {link}",
"cy": "Dyfyniad wedi ei gadw yn '{category}' ({count}).", "cy": "Dyfyniad wedi ei gadw yn '{category}' ({count}) - {link}",
"nl": "Quote opgeslagen in '{category}' ({count}).", "nl": "Quote opgeslagen in '{category}' ({count}) - {link}",
"de": "Zitat in '{category}' gespeichert ({count}).", "de": "Zitat in '{category}' gespeichert ({count}) - {link}",
"fr": "Citation sauvegardée dans '{category}' ({count}).", "fr": "Citation sauvegardée dans '{category}' ({count}) - {link}",
"it": "Citazione memorizzata in '{category}' ({count})." "it": "Citazione memorizzata in '{category}' ({count}) - {link}"
}, },
"quote_replace": { "quote_replace": {
"en": "No replacing arrays, you whore.", "en": "No replacing arrays, you whore.",