mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-30 10:56:55 -05:00
i did useless shit so i fixed it
This commit is contained in:
parent
aa9c854888
commit
e5b38024ce
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -14,7 +14,7 @@ dcclient.on('ready', () => {
|
|||
config.servers.forEach(async (server) => {
|
||||
const getBots = () => bots
|
||||
const setNewBot = (server, bot) => {
|
||||
bots = bots.filter((eachBot) => eachBot !== server)
|
||||
bots = bots.filter((eachBot) => eachBot.options.host !== server)
|
||||
bots.push(bot)
|
||||
}
|
||||
createBot(server, config, getBots, setNewBot, dcclient, rl)
|
||||
|
|
Loading…
Reference in a new issue