added autopublish
diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts
index 804e6ea..0a62019 100644
--- a/src/events/messageCreate.ts
+++ b/src/events/messageCreate.ts
@@ -31,6 +31,11 @@
let userAllow = config.filters.clean.allowed.user.includes(message.author.id);
if(!roleAllow && !userAllow) return await message.delete();
}
+
+ if (config.autoPublish.enabled && config.autoPublish.channels.includes(message.channel.id)) {
+ await message.crosspost();
+ }
+
const filter = getEmojiByName("ICONS.FILTER");
let attachmentJump = "";
if (config.logging.attachments.saved[message.channel.id + message.id]) {