Skip to content

Commit d0aec86

Browse files
committed
Default to 10 MB file size limit
1 parent 810fcf5 commit d0aec86

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Utilities/EnvironmentConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public class EnvironmentConfig
99
public string YtDlpUpdateBranch => Environment.GetEnvironmentVariable("YTDLP_UPDATE_BRANCH") ?? "release";
1010

1111
// Used as fallback for DMs. In guild channels, the bot auto-detects the upload limit
12-
// from the server's boost tier (25MB default, 50MB Tier 2, 100MB Tier 3).
13-
public int FileSizeLimit => int.Parse(Environment.GetEnvironmentVariable("FILE_SIZE_LIMIT") ?? "25");
12+
// from the server's boost tier (10MB default, 50MB Tier 2, 100MB Tier 3).
13+
public int FileSizeLimit => int.Parse(Environment.GetEnvironmentVariable("FILE_SIZE_LIMIT") ?? "10");
1414

1515
// S3-compatible storage (works with AWS S3, Garage, MinIO, Backblaze B2, etc.)
1616
public string? S3Endpoint => Environment.GetEnvironmentVariable("S3_ENDPOINT");

Workers/MessageHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private int GetFileSizeLimit(IChannel channel)
254254
{
255255
PremiumTier.Tier2 => 50,
256256
PremiumTier.Tier3 => 100,
257-
_ => 25
257+
_ => 10
258258
};
259259
}
260260

0 commit comments

Comments
 (0)