remove.bg command ( its actually paid api so won't be used )

This commit is contained in:
loicbersier 2019-10-10 01:36:04 +02:00
parent 188aff48d3
commit 3a9142485f

View file

@ -28,7 +28,7 @@ class removebgCommand extends Command {
if (Attachment[0] && !args.image) { if (Attachment[0] && !args.image) {
url = Attachment[0].url; url = Attachment[0].url;
} }
const outputFile = `${os.tmpdir()}/rempvebg.png`; const outputFile = `${os.tmpdir()}/${message.id}_removebg.png`;
const done = await removd.url({ const done = await removd.url({
apikey: removebgAPI, apikey: removebgAPI,
destination: outputFile, destination: outputFile,