mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
change hash delay + core customname "fix"
This commit is contained in:
parent
816aa16ec5
commit
7055c5e0d7
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ function inject(bot, dcclient, config) {
|
||||||
},
|
},
|
||||||
async loopPlace() {
|
async loopPlace() {
|
||||||
try {
|
try {
|
||||||
const fillCommand = `/minecraft:fill ${core.start.x} ${core.start.y} ${core.start.z} ${core.end.x} ${core.end.y} ${core.end.z} command_block${config.core.customName ? `{CustomName:'${JSON.stringify(config.core.customName)}'}` : ''}`;
|
const fillCommand = `/minecraft:fill ${core.start.x} ${core.start.y} ${core.start.z} ${core.end.x} ${core.end.y} ${core.end.z} command_block{CustomName:'${JSON.stringify(config.core.customName)}'}`;
|
||||||
const location = {x: Math.floor(bot.position.x), y: Math.floor(bot.position.y) - 1, z: Math.floor(bot.position.z)};
|
const location = {x: Math.floor(bot.position.x), y: Math.floor(bot.position.y) - 1, z: Math.floor(bot.position.z)};
|
||||||
bot.write('set_creative_slot', {
|
bot.write('set_creative_slot', {
|
||||||
slot: 36,
|
slot: 36,
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = {
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
bot.hash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.normalKey).digest('hex').substring(0, 16);
|
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);
|
bot.ownerHash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.ownerHashKey).digest('hex').substring(0, 16);
|
||||||
}, 9000);
|
}, 2000);
|
||||||
bot.once('end', () => {
|
bot.once('end', () => {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue