forked from wmantly/mc-bot-town
Mostly works
This commit is contained in:
@@ -33,6 +33,9 @@ module.exports = {
|
||||
// Check if bot has StoragePlugin
|
||||
if (this.plunginsLoaded['Storage']) {
|
||||
// Storage bot flow
|
||||
if (this.plunginsLoaded['Ai']) {
|
||||
this.plunginsLoaded['Ai']._expectingTradeWindow = true;
|
||||
}
|
||||
await this.say('/trade accept');
|
||||
let window = await this.once('windowOpen');
|
||||
|
||||
@@ -80,6 +83,9 @@ module.exports = {
|
||||
let chestBlock = findChestBySign(this, from);
|
||||
if(!chestBlock) return this.whisper(from, `You aren't allowed to trade with me...`);
|
||||
|
||||
if (this.plunginsLoaded['Ai']) {
|
||||
this.plunginsLoaded['Ai']._expectingTradeWindow = true;
|
||||
}
|
||||
await this.say('/trade accept');
|
||||
let window = await this.once('windowOpen');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user