add notifications for quiet [close #550]

This commit is contained in:
reality 2013-08-17 19:01:05 +00:00
parent 6fb7c8e91f
commit 152db6995f
2 changed files with 17 additions and 0 deletions

View File

@ -25,8 +25,19 @@ var commands = function(dbot) {
'quietee': quietee,
'minutes': minutes
}));
dbot.api.report.notify(server, channel, dbot.t('tquiet_notify', {
'quieter': quieter,
'channel': channel,
'quietee': quietee,
'minutes': minutes
}));
} else {
event.reply(dbot.t('quieted', { 'quietee': quietee }));
dbot.api.report.notify(server, channel, dbot.t('quiet_notify', {
'quieter': quieter,
'channel': channel,
'quietee': quietee
}));
}
this.api.quiet(server, quietee, channel);

View File

@ -19,6 +19,12 @@
"fr": "{quietee} a été rendu silencieux pour {minutes} minutes. Rappelle-toi : ne sois pas têtu.",
"it": "{quietee} è stato silenziato per {minutes} minuto/i. Ricordati: non essere testardo"
},
"quiet_notify": {
"en": "Attention: {quieter} has quieted {quietee} in {channel}."
},
"tquiet_notify": {
"en": "Attention: {quieter} has quieted {quietee} in {channel} for {minutes} minutes."
},
"unquieted": {
"en": "Unquieted {quietee}. Remember: don't be a coconut.",
"fr": "{quietee} peut maintenant parler. Rappelle-toi : ne sois pas têtu.",