remove sus?

This commit is contained in:
ChomeNS 2023-02-26 12:07:55 +07:00
parent 24d4c62fab
commit 5c2aabb1d2

3
bot.js
View file

@ -1,5 +1,4 @@
const mc = require('minecraft-protocol') const mc = require('minecraft-protocol')
const sleep = require('sleep-promise')
const { EventEmitter } = require('events') const { EventEmitter } = require('events')
const { loadPlugins } = require('./util/loadPlugins') const { loadPlugins } = require('./util/loadPlugins')
const util = require('node:util') const util = require('node:util')
@ -54,8 +53,6 @@ async function createBot (server, config, getBots, setNewBot, dcclient, rl) {
bot.version = bot._client.version bot.version = bot._client.version
bot.write = (name, data) => bot._client.write(name, data) bot.write = (name, data) => bot._client.write(name, data)
await sleep(200)
setNewBot(bot.server.host, bot) setNewBot(bot.server.host, bot)
const channel = dcclient.channels.cache.get(config.discord.servers[bot.server.host]) const channel = dcclient.channels.cache.get(config.discord.servers[bot.server.host])