idk
This commit is contained in:
@ -7,16 +7,14 @@ const inventoryViewer = require('mineflayer-web-inventory');
|
||||
|
||||
const commands = require('./commands');
|
||||
const {onJoin} = require('./player_list');
|
||||
const {Ai} = require('./ai');
|
||||
// const plugins = {
|
||||
// Swing: require('./swing'),
|
||||
// }
|
||||
|
||||
CJbot.pluginAdd(require('./swing'));
|
||||
CJbot.pluginAdd(require('./craft'));
|
||||
CJbot.pluginAdd(require('./tp'));
|
||||
CJbot.pluginAdd(require('./ai'));
|
||||
CJbot.pluginAdd(require('./guardianFarm'));
|
||||
CJbot.pluginAdd(require('./goldFarm'));
|
||||
CJbot.pluginAdd(require('./craft_chests'));
|
||||
|
||||
for(let name in conf.mc.bots){
|
||||
if(CJbot.bots[name]) continue;
|
||||
@ -28,12 +26,6 @@ for(let name in conf.mc.bots){
|
||||
bot.addCommand(name, toAdd)
|
||||
}
|
||||
}
|
||||
|
||||
if(conf.mc.bots[name].plugins){
|
||||
for(let pluginName in conf.mc.bots[name].plugins){
|
||||
bot.pluginLoad(pluginName, conf.mc.bots[name].plugins[pluginName]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(async ()=>{try{
|
||||
|
Reference in New Issue
Block a user