diff --git a/commands/message/image/deepai/deepdream.js b/commands/message/image/deepai/deepdream.js deleted file mode 100644 index 37bed85..0000000 --- a/commands/message/image/deepai/deepdream.js +++ /dev/null @@ -1,38 +0,0 @@ -const { getRecentImage } = require("../../../../labscore/utils/attachment"); -const { createEmbed } = require("../../../../labscore/utils/embed"); -const { editOrReply } = require("../../../../labscore/utils/message"); - -const { deepdream } = require('../../../../labscore/api') - -const { Permissions } = require("detritus-client/lib/constants"); - -module.exports = { - name: 'deepdream', - aliases: ['dd'], - metadata: { - description: 'Processes an image with DeepAI DeepDream.', - description_short: 'DeepDream image processing', - category: 'hidden', - usage: 'deepdream ' - }, - permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], - run: async (context) => { - context.triggerTyping(); - try{ - let image = await getRecentImage(context, 50) - if(!image) return editOrReply(context, { embeds: [createEmbed("warning", context, "No images found.")] }) - - let res = await deepdream(context, image) - - if(res.response.body.status == 1) return editOrReply(context, {embeds:[createEmbed("warning", context, res.response.body.errors[0])]}) - - return editOrReply(context, createEmbed("image", context, { - url: res.response.body.image, - time: res.timings - })) - }catch(e){ - console.log(e) - return editOrReply(context, {embeds:[createEmbed("error", context, `Deepdream timed out.`)]}) - } - }, -}; \ No newline at end of file diff --git a/commands/message/image/deepai/superresolution.js b/commands/message/image/deepai/superresolution.js index 23940d2..978ea1a 100644 --- a/commands/message/image/deepai/superresolution.js +++ b/commands/message/image/deepai/superresolution.js @@ -12,7 +12,7 @@ module.exports = { metadata: { description: 'Upscales an image with SuperResolution.', description_short: 'SuperResolution upscaling', - category: 'hidden', + category: 'image', usage: 'superresolution ' }, permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], diff --git a/commands/message/image/deepai/waifu2x.js b/commands/message/image/deepai/waifu2x.js index 4486679..4db0da5 100644 --- a/commands/message/image/deepai/waifu2x.js +++ b/commands/message/image/deepai/waifu2x.js @@ -12,7 +12,7 @@ module.exports = { metadata: { description: 'Processes an image with Waifu2x.', description_short: 'Waifu2x upscaling', - category: 'hidden', + category: 'image', usage: 'waifu2x ' }, permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], diff --git a/commands/message/image/imageedit.js b/commands/message/image/imageedit.js index 2e40190..f7944a3 100644 --- a/commands/message/image/imageedit.js +++ b/commands/message/image/imageedit.js @@ -14,7 +14,7 @@ module.exports = { description: 'Edits an image using AI.', description_short: 'AI image editing', examples: ['editimage Wearing a crown'], - category: 'hidden', + category: 'image', usage: 'editimage ' }, ratelimit: {