3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

~quiet command

This commit is contained in:
reality 2013-07-01 17:03:04 +00:00
parent 812504dcb2
commit 7ec1e5f6bb
2 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,20 @@ var commands = function(dbot) {
var commands = { var commands = {
/*** Kick Management ***/ /*** Kick Management ***/
'~quiet': function(event) {
var server = event.server,
quieter = event.user,
channel = event.input[1],
quietee = event.input[2];
if(!channel) {
channel = event.channel.name;
}
this.api.quiet(server, quietee, channel);
event.reply(dbot.t('quieted', { 'quietee': quietee }));
},
'~ckick': function(event) { '~ckick': function(event) {
var server = event.server, var server = event.server,
kicker = event.user, kicker = event.user,

View File

@ -7,6 +7,9 @@
"nl": "{user} is {kicks} keer gekickt en heeft anderen {kicked} keer gekickt.", "nl": "{user} is {kicks} keer gekickt en heeft anderen {kicked} keer gekickt.",
"de": "{user} wurde {kicks} mal gekickt und hat {kicked} mal andere Benutzer gekickt." "de": "{user} wurde {kicks} mal gekickt und hat {kicked} mal andere Benutzer gekickt."
}, },
"quieted": {
"en": "Quieted {quietee}. Remember: don't be a coconut."
},
"kicked_dbot": { "kicked_dbot": {
"en": "Thou shalt not kick {botname}", "en": "Thou shalt not kick {botname}",
"es": "No expulsás {botname}", "es": "No expulsás {botname}",