embed media (#92)

This commit is contained in:
cohlexyz
2026-03-01 00:50:15 +01:00
committed by GitHub
parent 0f7e75ec91
commit 6635ebacd0
2 changed files with 430 additions and 22 deletions

View File

@@ -316,6 +316,8 @@ public static class BuiltIn
public static string CaptureYtDlpWorkingDirectory = "Capture.YtDlp.WorkingDirectory";
[BuiltInSetting("Path of the yt-dlp binary", SettingValueType.Text, "/usr/local/bin/yt-dlp")]
public static string CaptureYtDlpBinaryPath = "Capture.YtDlp.BinaryPath";
[BuiltInSetting("Path of the FFmpeg binary", SettingValueType.Text, "ffmpeg")]
public static string FFmpegBinaryPath = "FFmpeg.BinaryPath";
[BuiltInSetting("User-Agent that gets passed to yt-dlp --user-agent", SettingValueType.Text,
"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0")]
public static string CaptureYtDlpUserAgent = "Capture.YtDlp.UserAgent";
@@ -540,6 +542,8 @@ public static class BuiltIn
public static string KasinoRouletteCountdownDuration = "Kasino.Roulette.CountdownDuration";
[BuiltInSetting("Whether Xeet posting is enabled", SettingValueType.Boolean, "true", BooleanRegex)]
public static string XeetEnabled = "Xeet.Enabled";
[BuiltInSetting("Maximum video duration in seconds for Xeet embeds", SettingValueType.Text, "120", WholeNumberRegex)]
public static string XeetMaxVideoDurationSeconds = "Xeet.MaxVideoDurationSeconds";
[BuiltInSetting("Connection string for bot's Redis", SettingValueType.Text)]
public static string BotRedisConnectionString = "Bot.RedisConnectionString";
[BuiltInSetting("Whether to automatically rehost images when they're added", SettingValueType.Boolean, "true",
@@ -596,4 +600,4 @@ public class BuiltInSetting(
ValueType = ValueType
};
}
}
}