mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 17:45:34 -05:00
16 lines
616 B
JavaScript
16 lines
616 B
JavaScript
/* eslint-disable max-len */
|
|
const crypto = require('crypto');
|
|
module.exports = {
|
|
inject: function(bot) {
|
|
const hashInterval = setInterval(() => {
|
|
bot.hash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + 'chomens1!1!').digest('hex').substring(0, 16);
|
|
}, 5000);
|
|
const ownerHashInterval = setInterval(() => {
|
|
bot.ownerHash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + 'ownermogus').digest('hex').substring(0, 16);
|
|
}, 5000);
|
|
bot.on('end', () => {
|
|
clearInterval(hashInterval);
|
|
clearInterval(ownerHashInterval);
|
|
});
|
|
},
|
|
};
|