fullpwerr commited on
Commit
f55911c
·
verified ·
1 Parent(s): 8062168

Update lib/skrep.js

Browse files
Files changed (1) hide show
  1. lib/skrep.js +2 -1
lib/skrep.js CHANGED
@@ -3,6 +3,7 @@ const axios = require("axios");
3
  const FormData = require("form-data");
4
  const fs = require("fs");
5
  const { exec } = require("child_process");
 
6
 
7
  async function ttt(link) {
8
  try {
@@ -37,7 +38,7 @@ async function ttt(link) {
37
  };
38
 
39
  if (res.image) {
40
- const outputDir = "./tmp";
41
  await downloadImages(res.images, outputDir);
42
 
43
  const FNvd = `tt_video_${Date.now()}.mp4`;
 
3
  const FormData = require("form-data");
4
  const fs = require("fs");
5
  const { exec } = require("child_process");
6
+ const path = require("path");
7
 
8
  async function ttt(link) {
9
  try {
 
38
  };
39
 
40
  if (res.image) {
41
+ const outputDir = path.join(__dirname, "../tmp")
42
  await downloadImages(res.images, outputDir);
43
 
44
  const FNvd = `tt_video_${Date.now()}.mp4`;