Remove extraneous code
This commit is contained in:
parent
5bb0c8f00e
commit
86b839ceba
1 changed files with 4 additions and 2 deletions
6
index.js
6
index.js
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue