31 lines
697 B
TypeScript
31 lines
697 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Button } from "@components/Button";
|
|
import { Message } from "@vencord/discord-types";
|
|
|
|
export const COOL_REGEX: RegExp[] = [
|
|
/vencord/i,
|
|
];
|
|
|
|
export function VeryCool({
|
|
message,
|
|
}: {
|
|
message: Message;
|
|
}) {
|
|
for (const idiot of COOL_REGEX) {
|
|
if (idiot.test(message.content)) {
|
|
return (
|
|
<div>
|
|
<Button type="button" variant="link" onClick={a => open("roblox://")}>
|
|
secret :3
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
}
|