delay irc channel join
This commit is contained in:
parent
d47a54dc3d
commit
60b59b473b
@ -22,12 +22,16 @@ module.exports = function(remote, events){
|
|||||||
|
|
||||||
// map channels
|
// map channels
|
||||||
client.on('registered', function() {
|
client.on('registered', function() {
|
||||||
|
let delay = 5000;
|
||||||
Object.keys(remote.channels).forEach(ingame_name => {
|
Object.keys(remote.channels).forEach(ingame_name => {
|
||||||
const irc_name = remote.channels[ingame_name];
|
setTimeout(function(){
|
||||||
var channel = client.channel("#" + irc_name);
|
const irc_name = remote.channels[ingame_name];
|
||||||
channel.join();
|
var channel = client.channel("#" + irc_name);
|
||||||
channel.say(`beerchat_proxy connected! ingame-channel: ${ingame_name}`);
|
channel.join();
|
||||||
channels[ingame_name] = channel;
|
channel.say(`beerchat_proxy connected! ingame-channel: ${ingame_name}`);
|
||||||
|
channels[ingame_name] = channel;
|
||||||
|
}, delay);
|
||||||
|
delay += 2000;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user