Updated mineflayerf
This commit is contained in:
@@ -1,11 +1,21 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'chat',
|
name: 'message',
|
||||||
description: 'Sends a message to the chat.',
|
description: 'Sends a message to the chat.',
|
||||||
type: 'mineflayer',
|
type: 'mineflayer',
|
||||||
|
|
||||||
async execute(bot, message) {
|
async execute(jsonMsg) {
|
||||||
|
|
||||||
console.log(message.toString());
|
const msg = jsonMsg.getText();
|
||||||
|
const annoyingMessages = [
|
||||||
|
"You are currently APPEARING OFFLINE",
|
||||||
|
"REMINDER: Your Online Status is currently set to Appear Offline",
|
||||||
|
"You have 1 unclaimed achievement reward!",
|
||||||
|
"Click here to view it!"
|
||||||
|
]
|
||||||
|
|
||||||
|
if (annoyingMessages.includes(msg)) return;
|
||||||
|
|
||||||
|
// console.log(msg);
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -3,7 +3,12 @@ module.exports = {
|
|||||||
description: 'Logs the bot in.',
|
description: 'Logs the bot in.',
|
||||||
type: 'mineflayer',
|
type: 'mineflayer',
|
||||||
|
|
||||||
async execute(bot) {
|
async execute() {
|
||||||
console.log('Logged into Minecraft!');
|
|
||||||
|
const bot = require ('../../index.js');
|
||||||
|
|
||||||
|
console.log('Logging in...');
|
||||||
|
bot.chat("/lobby bedwars")
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user