Remove extraneous code

This commit is contained in:
7cc5c4f330d47060 2024-08-03 03:09:35 -04:00
parent 5bb0c8f00e
commit 86b839ceba
No known key found for this signature in database

View file

@ -38,8 +38,6 @@ const createBot = function createBot (host, oldId) {
username: generateUser(host.options.legalName),
version: host.version?host.version:settings.version_mc
})
bot._client.on('success', () => {
})
if (typeof oldId !== 'undefined') {
for (const i in module.exports.bot[oldId].interval) {
clearInterval(module.exports.bot[oldId].interval[i])
@ -60,6 +58,10 @@ const createBot = function createBot (host, oldId) {
bot.info = (msg) => {
console.log(`[${bot.id}] [info] ${msg}`)
}
bot.displayChat = (type, msg) => {
console.log(`[${bot.id}] [${type}] ${msg}`)
}
loadplug(bot.id)
bot._client.on('error', (err) => {
console.log(err)