AI works here
This commit is contained in:
@@ -166,6 +166,20 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
},
|
||||
'resupply': {
|
||||
desc: 'Trigger farm resupply manually',
|
||||
allowed: ['wmantly', 'useless666', 'tux4242'],
|
||||
ignoreLock: true,
|
||||
async function(from, botName) {
|
||||
const target = botName ? this.constructor.bots[botName] : this;
|
||||
if (!target) return this.whisper(from, 'Unknown bot');
|
||||
const fs = target.plunginsLoaded['FarmSupply'];
|
||||
if (!fs) return this.whisper(from, 'FarmSupply not loaded');
|
||||
this.whisper(from, 'Starting resupply...');
|
||||
await fs.resupply();
|
||||
this.whisper(from, 'Resupply complete');
|
||||
}
|
||||
},
|
||||
'dismiss': {
|
||||
desc: `Send a bot offline`,
|
||||
allowed: ['wmantly', 'useless666', 'tux4242'],
|
||||
|
||||
Reference in New Issue
Block a user