mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
~quiet command
This commit is contained in:
parent
812504dcb2
commit
7ec1e5f6bb
@ -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,
|
||||
|
@ -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}",
|
||||
|
Loading…
Reference in New Issue
Block a user