From a58a00c7936b75c05cbbb59045372f8d68b2d5e6 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 25 Jul 2022 17:50:31 +0100 Subject: [PATCH] rm dalle --- SlashCommands/fun/dalle.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 SlashCommands/fun/dalle.js diff --git a/SlashCommands/fun/dalle.js b/SlashCommands/fun/dalle.js deleted file mode 100644 index f3a7b74..0000000 --- a/SlashCommands/fun/dalle.js +++ /dev/null @@ -1,31 +0,0 @@ -const { Client, CommandInteraction, MessageEmbed } = require("discord.js"); -const { SlashCommandBuilder } = require('@discordjs/builders'); -const { Dalle } = require('dalle-node') - - -module.exports = { - ...new SlashCommandBuilder() - .setName('AI') - .setDescription('Use the Dalle generator to make an AI generated image') - .addStringOption((option) => option - .setName('prompt') - .setDescription("Your prompt") - .setRequired(true) - ), - - /** - * - * @param {Client} client - * @param {CommandInteraction} interaction - * @param {String[]} args - */ - - run: async (client, interaction, args) => { - const dalle = new Dalle(process.env.DALLE_TOKEN); // Bearer Token - const promptToUse = interaction.options.getString('prompt') - const generations = await dalle.generate(promptToUse); - - interaction.reply({files: [generations]}) - - }, -}; \ No newline at end of file