Files
2025-12-27 17:16:20 +02:00

36 lines
836 B
TypeScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Vencord, a Discord client mod
* Copyright (c) 2025 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Message } from "@vencord/discord-types";
import { Text } from "@webpack/common";
export const IDIOT_REGEX: RegExp[] = [
/\b((s+i+x+ s+e+v+e+n+)|(67))\b/i,
/skibidi ?(toilets?)?/i,
/united kingdom/i,
/hitler/i,
/we ?are ?charlie ?kirk/i,
/darktru/i
];
export function IdiotWarning({
message,
}: {
message: Message;
}) {
for (const idiot of IDIOT_REGEX) {
if (idiot.test(message.content)) {
return (
<div>
<Text color="text-danger" variant="text-xs/semibold">
This message is stupid.
</Text>
</div>
);
}
}
}