unquiet notifies

This commit is contained in:
reality 2013-08-17 19:19:09 +00:00
parent de8285e199
commit fa1634d040
2 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,11 @@ var commands = function(dbot) {
var msTimeout = new Date(new Date().getTime() + (minutes * 60000));
dbot.api.timers.addTimeout(msTimeout, function() {
this.api.unquiet(server, quietee, channel);
dbot.api.report.notify(server, channel, dbot.t('unquiet_notify', {
'unquieter': dbot.config.name,
'channel': channel,
'quietee': quietee
}));
}.bind(this));
event.reply(dbot.t('tquieted', {
'quietee': quietee,
@ -56,6 +61,11 @@ var commands = function(dbot) {
this.api.unquiet(server, quietee, channel);
event.reply(dbot.t('unquieted', { 'quietee': quietee }));
dbot.api.report.notify(server, channel, dbot.t('unquiet_notify', {
'unquieter': quieter,
'channel': channel,
'quietee': quietee
}));
},
'~ckick': function(event) {

View File

@ -30,6 +30,9 @@
"fr": "{quietee} peut maintenant parler. Rappelle-toi : ne sois pas têtu.",
"it": "{quietee} può nuovamente parlare. Ricordati: non essere testardo."
},
"unquiet_notify": {
"en": "Attention: {unquieter} has unquieted {quietee} in {channel}."
},
"kicked_dbot": {
"en": "Thou shalt not kick {botname}",
"es": "No expulsás {botname}",