mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
mogus
This commit is contained in:
parent
21ccaeb18f
commit
a623048d1e
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -212,6 +212,7 @@ function main() {
|
|||
}, 1000);
|
||||
|
||||
consoleQueueInterval = setInterval(function() {
|
||||
if (consoleQueue.length > 50) consoleQueue = [];
|
||||
if (consoleQueue[0] || consoleQueue[0]==='') {
|
||||
console.log(bot.options.host + ': ' + consoleQueue[0].substring(0, 10000)/* message.toAnsi() + '\u001b[0m'*/);
|
||||
consoleQueue.shift();
|
||||
|
@ -496,9 +497,8 @@ dcclient.on('ready', async () => {
|
|||
fs.writeFileSync('./notonline.txt', 'false');
|
||||
return;
|
||||
}
|
||||
if (line.toLowerCase()==='.resethash') {
|
||||
bot.hash = randomstring.generate(16);
|
||||
console.log('new hash: ' + bot.hash);
|
||||
if (line==='.clearconsolequeue') {
|
||||
consoleQueue = [];
|
||||
return;
|
||||
}
|
||||
// if (line.startsWith("."))return console.log('command not found')
|
||||
|
|
Loading…
Reference in a new issue