blob: cc6c5545f17aeb7490e94fdc3bf3483beb049429 [file] [log] [blame]
pineafan377794f2022-04-18 19:01:01 +01001import Discord, { CommandInteraction } from "discord.js";
pineafan4f164f32022-02-26 22:07:12 +00002import { SlashCommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
pineafan1dc15722022-03-14 21:27:34 +00004import { testLink, testMalware, testNSFW } from '../utils/scanners.js';
pineafan4f164f32022-02-26 22:07:12 +00005
6const command = new SlashCommandBuilder()
7 .setName("privacy")
pineafan1dc15722022-03-14 21:27:34 +00008 .setDescription("we changed the fucking charger again!")
9 .addStringOption(option => option.setName("link").setDescription("fuck you").setRequired(false))
pineafan4f164f32022-02-26 22:07:12 +000010
pineafan4edb7762022-06-26 19:21:04 +010011const callback = async (interaction: CommandInteraction): Promise<any> => {
pineafan1dc15722022-03-14 21:27:34 +000012 console.log(await testLink(interaction.options.getString("link")))
pineafan4f164f32022-02-26 22:07:12 +000013}
14
15const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
16 return true;
17}
18
19export { command };
20export { callback };
21export { check };