mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
publish all art creations to the wallpaper channel
This commit is contained in:
parent
dd7662c354
commit
bb2c2eb870
1 changed files with 15 additions and 0 deletions
|
@ -87,6 +87,21 @@ module.exports = {
|
|||
|
||||
const image = await superagent.get(res.image_link)
|
||||
|
||||
// Upload the image to the labscore art feed channel
|
||||
await superagent.post(process.env.ART_WEBHOOK)
|
||||
.field("payload_json", JSON.stringify({
|
||||
"content": null,
|
||||
"embeds": [
|
||||
createEmbed("image", context, {
|
||||
url: res.hash,
|
||||
description: `${codeblock(`py`, [`${DEFAULT_BOT_PREFIX}art -type ${args.type.toLowerCase()} -seed ${seed} -variance ${variance} -rotate ${rotate}`])}`,
|
||||
time: ((Date.now() - timings) / 1000).toFixed(2)
|
||||
})
|
||||
]
|
||||
}))
|
||||
.attach('file[0]', Buffer.from(image.body), res.hash);
|
||||
|
||||
|
||||
return await editOrReply(context, {
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: res.hash,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue