diff options
| author | seth <[email protected]> | 2023-11-16 23:19:29 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-18 01:42:03 +0000 |
| commit | 13b54108494b7492b3772ff477ed9a02c56c7972 (patch) | |
| tree | 416247f2cb3404613f60373b59f65c592ce19173 /src/commands/convert.rs | |
| parent | 86318aa4aa8a7547e6398342a0c7b609e307dd5d (diff) | |
chore: cleanup imports
Diffstat (limited to 'src/commands/convert.rs')
| -rw-r--r-- | src/commands/convert.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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?; |
