mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
fix end + add chipmunk server
This commit is contained in:
parent
69bbd673ca
commit
9d5bc776f4
2 changed files with 7 additions and 2 deletions
|
@ -49,6 +49,7 @@ module.exports = {
|
||||||
'192.168.1.103': '1002806756885413978',
|
'192.168.1.103': '1002806756885413978',
|
||||||
'kitsune.icu': '1004006678460637315',
|
'kitsune.icu': '1004006678460637315',
|
||||||
'mc.chomens41793.ga': '1010734897796763758',
|
'mc.chomens41793.ga': '1010734897796763758',
|
||||||
|
'71.179.136.66': '1042590315464364032',
|
||||||
},
|
},
|
||||||
'prefix': '!',
|
'prefix': '!',
|
||||||
},
|
},
|
||||||
|
@ -65,6 +66,10 @@ module.exports = {
|
||||||
'host': 'kitsune.icu',
|
'host': 'kitsune.icu',
|
||||||
'port': 25565,
|
'port': 25565,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'host': '71.179.136.66',
|
||||||
|
'port': 25565,
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// 'host': 'mc.chomens41793.ga',
|
// 'host': 'mc.chomens41793.ga',
|
||||||
// 'port': 25565,
|
// 'port': 25565,
|
||||||
|
|
|
@ -16,6 +16,8 @@ function inject(bot, dcclient, config) {
|
||||||
version,
|
version,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bot.once('end', () => srv.close());
|
||||||
|
|
||||||
srv.on('login', function(client) {
|
srv.on('login', function(client) {
|
||||||
bot.console.info(`[Proxy] ${client.username} connected to proxy`);
|
bot.console.info(`[Proxy] ${client.username} connected to proxy`);
|
||||||
let endedClient = false;
|
let endedClient = false;
|
||||||
|
@ -98,8 +100,6 @@ function inject(bot, dcclient, config) {
|
||||||
}
|
}
|
||||||
targetClient.write(meta.name, data);
|
targetClient.write(meta.name, data);
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.on('end', () => srv.close());
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue