mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
add link output to qadd
This commit is contained in:
parent
ad0133b948
commit
3250e25aa0
@ -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'));
|
||||||
|
@ -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.",
|
||||||
|
Loading…
Reference in New Issue
Block a user