Eliminated Discordeno, functional and runnable.

This commit is contained in:
fzzinchemical
2025-04-15 15:49:35 +02:00
parent 63db6fb27a
commit 1e0a01d771
7 changed files with 63 additions and 142 deletions

View File

@@ -1,9 +1,4 @@
import {
ChatInputCommandInteraction,
CommandInteractionOptionResolver,
InteractionCallback,
SlashCommandBuilder,
} from "@discordjs";
import { ChatInputCommandInteraction, SlashCommandBuilder } from "@discordjs";
// import { drop, help, requestWorker } from "./plugin.ts";
import { logMessage } from "@root/logging.ts";
import { defaultString } from "@root/defaultString.ts";
@@ -38,30 +33,14 @@ export const commands = [
data: new SlashCommandBuilder()
.setName("rule")
.setDescription("Drops one or multiple images using the rule34 API.")
.setNSFW(true)
// .setNSFW(true)
.addSubcommand((subcommand) =>
subcommand
.setName("drop")
.setDescription("Drops one or multiple images using the rule34 API.")
),
},
{
data: new SlashCommandBuilder()
.setName("gif")
.setDescription("Sends a random gif!")
.addStringOption((option) =>
option.setName("category")
.setDescription("The gif category")
.setRequired(true)
.addChoices(
{ name: "Funny", value: "gif_funny" },
{ name: "Meme", value: "gif_meme" },
{ name: "Movie", value: "gif_movie" },
)
),
async execute (interaction: ChatInputCommandInteraction) {
const category = interaction.options.getString('category');
await interaction.reply(`You chose: ${category}`);
}
async execute(interaction: ChatInputCommandInteraction) {
await interaction.reply(`VIOLENCE!`);
},
},
];