From 13b54108494b7492b3772ff477ed9a02c56c7972 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 16 Nov 2023 23:19:29 -0500 Subject: chore: cleanup imports --- src/commands/convert.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/convert.rs') diff --git a/src/commands/convert.rs b/src/commands/convert.rs index 4e5d71c..1f39ae4 100644 --- a/src/commands/convert.rs +++ b/src/commands/convert.rs @@ -1,5 +1,5 @@ use crate::{Context, Error}; -use bottomify::bottom::{decode_string, encode_string}; +use bottomify::bottom; #[poise::command( slash_command, @@ -37,7 +37,7 @@ pub async fn to_bottom( ctx: Context<'_>, #[description = "what teawie will translate into bottom"] message: String, ) -> Result<(), Error> { - let encoded = encode_string(&message); + let encoded = bottom::encode_string(&message); ctx.say(encoded).await?; Ok(()) } @@ -48,7 +48,7 @@ pub async fn from_bottom( ctx: Context<'_>, #[description = "what teawie will translate from bottom"] message: String, ) -> Result<(), Error> { - let d = decode_string(&message); + let d = bottom::decode_string(&message); match d { Ok(decoded) => { ctx.say(decoded).await?; -- cgit v1.2.3