fix image IDs causing duplicate results

This commit is contained in:
derpystuff 2024-01-14 17:50:14 +01:00
parent eb944dd1d3
commit 93c7599b15

View file

@ -54,7 +54,7 @@ module.exports = {
// Construct Embeds // Construct Embeds
let files = []; let files = [];
let embeds = res.response.body.images.map((i)=>{ let embeds = res.response.body.images.map((i)=>{
let imgName = `lcwp.${Date.now().toString(36)}.jpeg`; let imgName = `lcwp.${(Date.now() + Math.random()).toString(36)}.jpeg`;
files.push({ files.push({
filename: imgName, filename: imgName,