Skip to content

Commit

Permalink
Reducing the number of bald image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayrox committed Oct 12, 2021
1 parent 38b4083 commit 63db5b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/Miscellaneous/bald.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ module.exports = {

await message.deferReply()

var rnd = Math.floor(Math.random()*500)
var rnd = Math.floor(Math.random()*200)
console.log(rnd)

await message.editReply({embeds : [{description : "⏳ En attente de Google Image ... ", color:0xFF6800}]})
.then(async (resultMessage) => {
const img_result = await google.scrape("bald guy", 500)
const img_result = await google.scrape("bald guy", 200)

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

Expand Down

0 comments on commit 63db5b4

Please sign in to comment.