blob: 063f19587967ed22c2c33daee317a130e57c3f43 [file] [log] [blame]
pineafan4f164f32022-02-26 22:07:12 +00001import { CommandInteraction } from "discord.js";
2import { 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 };