player list
This commit is contained in:
@ -7,7 +7,7 @@ const {CJbot} = require('../model/minecraft');
|
||||
const inventoryViewer = require('mineflayer-web-inventory');
|
||||
|
||||
const commands = require('./commands');
|
||||
|
||||
const {onJoin} = require('./player_list')
|
||||
|
||||
for(let name in conf.mc.bots){
|
||||
if(CJbot.bots[name]) continue;
|
||||
@ -22,9 +22,12 @@ for(let name in conf.mc.bots){
|
||||
|
||||
bot.on('onReady', async function(argument) {
|
||||
// inventoryViewer(bot.bot);
|
||||
|
||||
onJoin(bot);
|
||||
await sleep(1000);
|
||||
bot.bot.setControlState('jump', true);
|
||||
setTimeout(()=> bot.bot.setControlState('jump', false), 5000)
|
||||
|
||||
})
|
||||
|
||||
// bot.on('message', function(...args){
|
||||
@ -47,4 +50,5 @@ try{
|
||||
console.log('!!!!!!!! error:', e)
|
||||
}})()
|
||||
|
||||
|
||||
// module.exports = {bot: ez, henry, owen, linda, jimin, nova, ez};
|
||||
|
Reference in New Issue
Block a user