i did useless shit so i fixed it

This commit is contained in:
ChomeNS 2022-12-30 18:23:03 +07:00
parent aa9c854888
commit e5b38024ce

View file

@ -14,7 +14,7 @@ dcclient.on('ready', () => {
config.servers.forEach(async (server) => { config.servers.forEach(async (server) => {
const getBots = () => bots const getBots = () => bots
const setNewBot = (server, bot) => { const setNewBot = (server, bot) => {
bots = bots.filter((eachBot) => eachBot !== server) bots = bots.filter((eachBot) => eachBot.options.host !== server)
bots.push(bot) bots.push(bot)
} }
createBot(server, config, getBots, setNewBot, dcclient, rl) createBot(server, config, getBots, setNewBot, dcclient, rl)