Skip to content

Commit

Permalink
update replay max discord upload size
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Dec 17, 2024
1 parent 15e8336 commit 9c9290c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/zenith/discord/DiscordEventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,9 @@ public void handleReplayStoppedEvent(final ReplayStoppedEvent event) {
var replayFile = event.replayFile();
if (replayFile != null && CONFIG.client.extra.replayMod.sendRecordingsToDiscord) {
try (InputStream in = new BufferedInputStream(new FileInputStream(replayFile))) {
// 25MB discord file attachment size limit
// 10mb discord file attachment size limit
long replaySizeMb = replayFile.length() / (1024 * 1024);
if (replaySizeMb > 24) {
if (replaySizeMb > 10) {
if (CONFIG.client.extra.replayMod.fileIOUploadIfTooLarge) {
DISCORD_LOG.info("Uploading large replay to file.io with size: {}", replayFile.length());
var notiEmbed = Embed.builder()
Expand Down

0 comments on commit 9c9290c

Please sign in to comment.