mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
update wallpaper
This commit is contained in:
parent
12556f2c7a
commit
a6a3eaaf05
4 changed files with 90 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
const { geminiVision, aiWallpaper } = require("../../../labscore/api/obelisk");
|
||||
const { geminiVision, aiWallpaper, imagen } = require("../../../labscore/api/obelisk");
|
||||
const { getRecentImage } = require("../../../labscore/utils/attachment");
|
||||
const { createEmbed } = require("../../../labscore/utils/embed");
|
||||
const { editOrReply } = require("../../../labscore/utils/message");
|
||||
|
@ -16,14 +16,14 @@ module.exports = {
|
|||
aliases: ['aiimg'],
|
||||
metadata: {
|
||||
description: `${iconPill("generative_ai", "LIMITED TESTING")}\n\nGenerate images with Imagen 2`,
|
||||
description_short: 'Create Wallpapers',
|
||||
description_short: 'Create Images with Imagen',
|
||||
examples: ['imagen a painting of northern lights'],
|
||||
category: 'limited',
|
||||
usage: 'imagen <prompt>'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context, args) => {
|
||||
if(!await hasFeature(context, "ai/wallpapers")) return;
|
||||
if(!await hasFeature(context, "ai/imagen")) return;
|
||||
context.triggerTyping();
|
||||
|
||||
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (prompt).`))
|
||||
|
@ -36,7 +36,7 @@ module.exports = {
|
|||
}
|
||||
}))
|
||||
|
||||
let res = await aiWallpaper(context, args.text);
|
||||
let res = await imagen(context, args.text);
|
||||
|
||||
// Construct Embeds
|
||||
let files = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue