forked from GitHub/dbot
stagger kickbanning
This commit is contained in:
parent
17070adcb6
commit
e43b6ea715
@ -48,9 +48,11 @@ var commands = function(dbot) {
|
|||||||
channels = dbot.config.servers[server].channels;
|
channels = dbot.config.servers[server].channels;
|
||||||
|
|
||||||
_.each(channels, function(channel) {
|
_.each(channels, function(channel) {
|
||||||
|
setTimeout(function(channel) {
|
||||||
this.api.ban(server, banee, channel);
|
this.api.ban(server, banee, channel);
|
||||||
this.api.kick(server, banee, channel, reason +
|
this.api.kick(server, banee, channel, reason +
|
||||||
' (network-wide ban requested by ' + banner + ')');
|
' (network-wide ban requested by ' + banner + ')');
|
||||||
|
}, 1000);
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
var notifyString = dbot.t('nbanned', {
|
var notifyString = dbot.t('nbanned', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user