diff --git a/modules/kick/commands.js b/modules/kick/commands.js index c64aa46..6ab46c7 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -4,6 +4,20 @@ var commands = function(dbot) { var commands = { /*** 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) { var server = event.server, kicker = event.user, diff --git a/modules/kick/strings.json b/modules/kick/strings.json index 07d8064..a00df1b 100644 --- a/modules/kick/strings.json +++ b/modules/kick/strings.json @@ -7,6 +7,9 @@ "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." }, + "quieted": { + "en": "Quieted {quietee}. Remember: don't be a coconut." + }, "kicked_dbot": { "en": "Thou shalt not kick {botname}", "es": "No expulsás {botname}",