configurable tiktok spot

This commit is contained in:
Adam R. Grey 2021-08-29 00:27:40 -04:00
parent da0c9eb48a
commit 1a327acbd0
2 changed files with 3 additions and 2 deletions

View File

@ -139,7 +139,7 @@ namespace silverworker_discord
var ytdl = new YoutubeDLSharp.YoutubeDL(); var ytdl = new YoutubeDLSharp.YoutubeDL();
ytdl.YoutubeDLPath = config["ytdl"]; ytdl.YoutubeDLPath = config["ytdl"];
ytdl.FFmpegPath = "ffmpeg"; ytdl.FFmpegPath = "ffmpeg";
ytdl.OutputFolder = "./"; ytdl.OutputFolder = config["content_wasteland"];
var res = await ytdl.RunVideoDownload(link.ToString()); var res = await ytdl.RunVideoDownload(link.ToString());
string path = res.Data; string path = res.Data;
await channel.SendFileAsync(path); await channel.SendFileAsync(path);

View File

@ -2,5 +2,6 @@
"token": "59 chars", "token": "59 chars",
"botChatterChannel": 0, "botChatterChannel": 0,
"announcementChannel": 0, "announcementChannel": 0,
"ytdl": "youtube-dl" "ytdl": "youtube-dl",
"content_wasteland": "./"
} }