Updating mineflayer

This commit is contained in:
2023-03-17 11:13:38 +01:00
parent 5ba2051af5
commit 51e2fd8d59
4 changed files with 20 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
module.exports = {
name: 'Guild chat relay',
description: 'Sends a message to the chat.',
type: 'message',
async execute(jsonMsg) {
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("[Chat message] " + msg);
}
};