Beautifying

This commit is contained in:
2023-04-24 23:38:33 +02:00
parent e2747dab3f
commit 3a3bb89635
40 changed files with 4010 additions and 3388 deletions

View File

@@ -1,29 +1,27 @@
const client = require('../../index.js');
const client = require("../../index.js");
module.exports = {
name: 'Guild chat relay',
description: 'Sends a message to the chat.',
type: 'message',
name: "Guild chat relay",
description: "Sends a message to the chat.",
type: "message",
async execute(jsonMsg) {
async execute(jsonMsg) {
const gcchannel = "1092569207918575687";
const gcchannel = "1092569207918575687"
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!"
];
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;
if (annoyingMessages.includes(msg)) return;
console.log("[Chat message] " + msg);
console.log("[Chat message] " + msg);
const channel = client.guild.channels.cache.get(gcchannel);
const channel = client.guild.channels.cache.get(gcchannel);
channel.send(msg);
}
};
channel.send(msg);
}
};