blob: 31744210ca8a70b81159c5981ff246751cee7ced [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
pineafan1dc15722022-03-14 21:27:34 +000011const callback = async (interaction: CommandInteraction) => {
12 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 };