forked from GitHub/dbot
add notifications for quiet [close #550]
This commit is contained in:
parent
6fb7c8e91f
commit
152db6995f
@ -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);
|
||||
|
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user