configure upload attachment size. remove bitrate compression.

This commit is contained in:
2022-01-27 17:31:07 +00:00
parent d59c50e7a9
commit c364343fe9
3 changed files with 8 additions and 6 deletions

View File

@ -5,7 +5,7 @@ use tokio::fs::File;
use crate::{
cmds::autocomplete_sound,
consts::{MAX_SOUNDS, PATREON_GUILD, PATREON_ROLE},
consts::{MAX_SOUNDS, PATREON_GUILD, PATREON_ROLE, UPLOAD_MAX_SIZE},
models::sound::{Sound, SoundCtx},
Context, Error,
};
@ -59,7 +59,7 @@ pub async fn upload_new_sound(
if permit_upload {
let attachment = {
ctx.say("Please now upload an audio file under 1MB in size (larger files will be automatically trimmed):").await?;
ctx.say(format!("Please now upload an audio file under {}MB in size (larger files will be automatically trimmed):", *UPLOAD_MAX_SIZE / (1024u64.pow(2)))).await?;
let reply = ctx
.channel_id()