mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-13 18:34:54 -05:00
14 lines
525 B
JavaScript
14 lines
525 B
JavaScript
const crypto = require('crypto')
|
|
module.exports = {
|
|
inject: function (bot, dcclient, config) {
|
|
bot.hash = ''
|
|
|
|
const interval = setInterval(() => {
|
|
bot.hash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.normalKey).digest('hex').substring(0, 16)
|
|
bot.ownerHash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.ownerHashKey).digest('hex').substring(0, 16)
|
|
}, 2000)
|
|
bot.on('end', () => {
|
|
clearInterval(interval)
|
|
})
|
|
}
|
|
}
|