silly goober bot

fix(commands/bottom): wrap with codeblcok

+7 -2
+7 -2
src/commands/fun/bottom.rs
··· 8 8 pub async fn bottomify(ctx: Context<'_>, #[description = "text"] input: String) -> Result<()> { 9 9 let out = bottom::encode_string(&input); 10 10 11 - ctx.say(out).await?; 11 + ctx.say(format!("```{out}```")).await?; 12 12 Ok(()) 13 13 } 14 14 ··· 17 17 pub async fn topify(ctx: Context<'_>, #[description = "text"] input: String) -> Result<()> { 18 18 let out = bottom::decode_string(&input); 19 19 20 - ctx.say(out.expect("failed to translate")).await?; 20 + if out.is_ok() { 21 + ctx.say(out?).await?; 22 + } else { 23 + ctx.say("I couldn't decode that message.").await?; 24 + } 25 + 21 26 Ok(()) 22 27 }