This commit is contained in:
derpystuff 2023-11-05 20:40:02 +01:00
parent 6e1a5f1cdb
commit 5da051b3b1
8 changed files with 10 additions and 5 deletions

View file

@ -14,11 +14,12 @@ module.exports = {
description: 'Ask AI questions. May not be accurate.', description: 'Ask AI questions. May not be accurate.',
description_short: 'AI questions', description_short: 'AI questions',
examples: ['ask How many otter species are there?'], examples: ['ask How many otter species are there?'],
category: 'hidden', category: 'broken',
usage: 'ask <prompt>' usage: 'ask <prompt>'
}, },
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY], permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
run: async (context, args) => { run: async (context, args) => {
return;
context.triggerTyping(); context.triggerTyping();
if (!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (text).`)) if (!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (text).`))
try { try {

View file

@ -12,11 +12,12 @@ module.exports = {
metadata: { metadata: {
description: 'Upscales an image with SuperResolution.', description: 'Upscales an image with SuperResolution.',
description_short: 'SuperResolution upscaling', description_short: 'SuperResolution upscaling',
category: 'image', category: 'broken',
usage: 'superresolution <image>' usage: 'superresolution <image>'
}, },
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
run: async (context) => { run: async (context) => {
return;
context.triggerTyping(); context.triggerTyping();
try{ try{
let image = await getRecentImage(context, 50) let image = await getRecentImage(context, 50)

View file

@ -12,11 +12,12 @@ module.exports = {
metadata: { metadata: {
description: 'Generates an image with DeepAI Text2Image using a text prompt.', description: 'Generates an image with DeepAI Text2Image using a text prompt.',
description_short: 'Image from text prompt', description_short: 'Image from text prompt',
category: 'hidden', category: 'broken',
usage: 'text2image <image>' usage: 'text2image <image>'
}, },
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
run: async (context, args) => { run: async (context, args) => {
return;
context.triggerTyping(); context.triggerTyping();
try{ try{
if(!args.text) return editOrReply(context, createEmbed("warning", context, "Missing parameter (text).")) if(!args.text) return editOrReply(context, createEmbed("warning", context, "Missing parameter (text)."))

View file

@ -12,11 +12,12 @@ module.exports = {
metadata: { metadata: {
description: 'Processes an image with Waifu2x.', description: 'Processes an image with Waifu2x.',
description_short: 'Waifu2x upscaling', description_short: 'Waifu2x upscaling',
category: 'image', category: 'broken',
usage: 'waifu2x <image>' usage: 'waifu2x <image>'
}, },
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
run: async (context) => { run: async (context) => {
return;
context.triggerTyping(); context.triggerTyping();
try{ try{
let image = await getRecentImage(context, 50) let image = await getRecentImage(context, 50)

View file

@ -14,7 +14,7 @@ module.exports = {
description: 'Edits an image using AI.', description: 'Edits an image using AI.',
description_short: 'AI image editing', description_short: 'AI image editing',
examples: ['editimage Wearing a crown'], examples: ['editimage Wearing a crown'],
category: 'image', category: 'broken',
usage: 'editimage <prompt>' usage: 'editimage <prompt>'
}, },
ratelimit: { ratelimit: {
@ -24,6 +24,7 @@ module.exports = {
}, },
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY], permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
run: async (context, args) => { run: async (context, args) => {
return;
if (!args.prompt) return editOrReply(context, createEmbed("warning", context, "Missing prompt.")) if (!args.prompt) return editOrReply(context, createEmbed("warning", context, "Missing prompt."))
let image = await getRecentImage(context, 50) let image = await getRecentImage(context, 50)