Yes, this is the same as the character from Celeste
This commit is contained in:
parent
b02f7156a5
commit
9f789fccb1
1 changed files with 13 additions and 12 deletions
25
index.js
25
index.js
|
@ -34,6 +34,19 @@ const createBot = function createBot (host, oldId) {
|
||||||
username: generateUser(host.options.legalName),
|
username: generateUser(host.options.legalName),
|
||||||
version: host.version ? host.version : settings.version_mc
|
version: host.version ? host.version : settings.version_mc
|
||||||
})
|
})
|
||||||
|
|
||||||
|
bot.info = (msg) => {
|
||||||
|
console.log(`[${bot.id}] [info] ${msg}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
bot.displayChat = (type, subtype, msg) => {
|
||||||
|
if (settings.displaySubtypesToConsole) {
|
||||||
|
console.log(`[${bot.id}] [${type}] [${subtype}] ${msg}`)
|
||||||
|
} else {
|
||||||
|
console.log(`[${bot.id}] [${type}] ${msg}`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof oldId !== 'undefined') {
|
if (typeof oldId !== 'undefined') {
|
||||||
for (const i in bots[oldId].interval) {
|
for (const i in bots[oldId].interval) {
|
||||||
clearInterval(bots[oldId].interval[i])
|
clearInterval(bots[oldId].interval[i])
|
||||||
|
@ -49,18 +62,6 @@ const createBot = function createBot (host, oldId) {
|
||||||
bots.push(bot)
|
bots.push(bot)
|
||||||
}
|
}
|
||||||
|
|
||||||
bot.info = (msg) => {
|
|
||||||
console.log(`[${bot.id}] [info] ${msg}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
bot.displayChat = (type, subtype, msg) => {
|
|
||||||
if (settings.displaySubtypesToConsole) {
|
|
||||||
console.log(`[${bot.id}] [${type}] [${subtype}] ${msg}`)
|
|
||||||
} else {
|
|
||||||
console.log(`[${bot.id}] [${type}] ${msg}`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bot._client.on('error', (err) => {
|
bot._client.on('error', (err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue