WIP: Start of implementing a link-only mode
Some checks failed
Test / build (push) Failing after 4s

This commit is contained in:
Ethan Lane 2024-10-12 13:45:41 +01:00
parent 4ed5beb42a
commit 1acedfbd3d
10 changed files with 696 additions and 634 deletions

View file

@ -2,6 +2,7 @@ import { Message } from "discord.js";
import SettingsHelper from "../../helpers/SettingsHelper";
import VerificationCheck from "./MessageCreate/VerificationCheck";
import CacheHelper from "../../helpers/CacheHelper";
import LinkOnlyMode from "./MessageCreate/LinkOnlyMode";
export default async function MessageCreate(message: Message) {
if (!message.guild) return;
@ -9,6 +10,8 @@ export default async function MessageCreate(message: Message) {
await CacheHelper.UpdateServerCache(message.guild);
await LinkOnlyMode(message);
const isVerificationEnabled = await SettingsHelper.GetSetting("verification.enabled", message.guild.id);
if (isVerificationEnabled && isVerificationEnabled.toLocaleLowerCase() == "true") {