configurable tiktok spot
This commit is contained in:
parent
da0c9eb48a
commit
1a327acbd0
@ -139,7 +139,7 @@ namespace silverworker_discord
|
||||
var ytdl = new YoutubeDLSharp.YoutubeDL();
|
||||
ytdl.YoutubeDLPath = config["ytdl"];
|
||||
ytdl.FFmpegPath = "ffmpeg";
|
||||
ytdl.OutputFolder = "./";
|
||||
ytdl.OutputFolder = config["content_wasteland"];
|
||||
var res = await ytdl.RunVideoDownload(link.ToString());
|
||||
string path = res.Data;
|
||||
await channel.SendFileAsync(path);
|
||||
|
@ -2,5 +2,6 @@
|
||||
"token": "59 chars",
|
||||
"botChatterChannel": 0,
|
||||
"announcementChannel": 0,
|
||||
"ytdl": "youtube-dl"
|
||||
"ytdl": "youtube-dl",
|
||||
"content_wasteland": "./"
|
||||
}
|
Loading…
Reference in New Issue
Block a user