diff --git a/src/main/java/com/zenith/command/impl/ReplayCommand.java b/src/main/java/com/zenith/command/impl/ReplayCommand.java index 74db818b..2e123593 100644 --- a/src/main/java/com/zenith/command/impl/ReplayCommand.java +++ b/src/main/java/com/zenith/command/impl/ReplayCommand.java @@ -32,6 +32,8 @@ public CommandUsage commandUsage() { Replays can optionally be uploaded to discord if they are under the discord message size limit. + If a replay is too large for discord, it can be uploaded to https://file.io instead if `fileIoUpload` is enabled. + A `maxRecordingTime` of 0 means there is no limit, however, recording are always stopped on disconnects. `autoStart` will automatically start a new recording when the proxy connects. @@ -42,6 +44,7 @@ public CommandUsage commandUsage() { "start", "stop", "discordUpload on/off", + "fileIoUpload on/off", "maxRecordingTime ", "autoRecord mode ", "autoRecord health " @@ -84,6 +87,12 @@ public LiteralArgumentBuilder register() { .title("Discord Upload " + toggleStrCaps(CONFIG.client.extra.replayMod.sendRecordingsToDiscord)); return 1; }))) + .then(literal("fileIoUploadIfTooLarge").requires(Command::validateAccountOwner).then(argument("toggle", toggle()).executes(c -> { + CONFIG.client.extra.replayMod.fileIOUploadIfTooLarge = getToggle(c, "toggle"); + c.getSource().getEmbed() + .title("file.io Upload " + toggleStrCaps(CONFIG.client.extra.replayMod.fileIOUploadIfTooLarge)); + return 1; + }))) .then(literal("maxRecordingTime").then(argument("minutes", integer(0, 60 * 6)).executes(c -> { CONFIG.client.extra.replayMod.maxRecordingTimeMins = getInteger(c, "minutes"); c.getSource().getEmbed() @@ -122,6 +131,7 @@ public void postPopulate(final Embed embed) { embed .primaryColor() .addField("Discord Upload", toggleStr(CONFIG.client.extra.replayMod.sendRecordingsToDiscord), false) + .addField("file.io Upload", toggleStr(CONFIG.client.extra.replayMod.fileIOUploadIfTooLarge), false) .addField("Max Recording Time", getMaxRecordingTimeStr(), false) .addField("Auto Record Mode", CONFIG.client.extra.replayMod.autoRecordMode.getName(), false); }