Eliminated Discordeno, functional and runnable.
This commit is contained in:
@@ -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!`);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user