Yes, this is the same as the character from Celeste

This commit is contained in:
Madeline 2024-11-09 00:50:45 -05:00
parent b02f7156a5
commit 9f789fccb1
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:oO39knK4Ms3Sk93ZEui6XuFW9LnLbXsy5kQ8I1GT9j8

View file

@ -34,6 +34,19 @@ const createBot = function createBot (host, oldId) {
username: generateUser(host.options.legalName),
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') {
for (const i in bots[oldId].interval) {
clearInterval(bots[oldId].interval[i])
@ -49,18 +62,6 @@ const createBot = function createBot (host, oldId) {
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) => {
console.log(err)
})