Skip to content

Commit

Permalink
Merge pull request #45 from Ayrox/dev
Browse files Browse the repository at this point in the history
Fix jerem.js
  • Loading branch information
Ayrox authored Oct 26, 2021
2 parents c0ea152 + b720ddc commit 5331264
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Commands/Miscellaneous/jerem.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const Scrapper = require('images-scraper')

const google = new Scrapper({
puppeteer: {
headless:true
headless: true,
args: ["--no-sandbox"]
}
})

Expand Down Expand Up @@ -33,17 +34,14 @@ module.exports = {
.then(async (resultMessage) => {
const img_result = await google.scrape("chauve barbue", 200) //changer en chauve barbue

const Attach = new MessageAttachment(`${img_result[rnd].url}`,"jerem.png")

let baldEmbed = new MessageEmbed()
.setColor(0xEDB987)
.setDescription(`**Jérémie n°${rnd}**`)
.setImage("attachment://jerem.png")
.setImage(img_result[rnd].url)
.setTimestamp()

resultMessage.edit({
embeds: [baldEmbed],
files:[Attach]
})
});

Expand Down

0 comments on commit 5331264

Please sign in to comment.