mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
upload result to discord
This commit is contained in:
parent
93084987ed
commit
9f7d63da4b
1 changed files with 8 additions and 5 deletions
|
@ -48,11 +48,14 @@ module.exports = {
|
|||
|
||||
clearTimeout(noticeTimer)
|
||||
|
||||
await response.edit({ embeds: [
|
||||
createEmbed("image", context, {
|
||||
url: img.body.image
|
||||
})
|
||||
] })
|
||||
let imageData = await superagent.get(img.body.image)
|
||||
|
||||
return editOrReply(context, {
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: "edited.jpg"
|
||||
})],
|
||||
files: [{ filename: "edited.jpg", value: imageData.body }]
|
||||
})
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
clearTimeout(noticeTimer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue