Updated mineflayerf

This commit is contained in:
2023-03-17 10:46:53 +01:00
parent 2c67d7d819
commit 5ba2051af5
2 changed files with 20 additions and 5 deletions

View File

@@ -1,11 +1,21 @@
module.exports = {
name: 'chat',
name: 'message',
description: 'Sends a message to the chat.',
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);
}
};

View File

@@ -3,7 +3,12 @@ module.exports = {
description: 'Logs the bot in.',
type: 'mineflayer',
async execute(bot) {
console.log('Logged into Minecraft!');
async execute() {
const bot = require ('../../index.js');
console.log('Logging in...');
bot.chat("/lobby bedwars")
}
}