From 0d0e68fec058b7a8b8e9a4768a183ec08ffad770 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 7 Apr 2023 22:59:35 -0400 Subject: add bottom subcommands --- src/utils.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 78e02dd..c75601f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -79,21 +79,21 @@ pub async fn get_copypasta(name: &str) -> Vec { } /* - * encodes a string into bottom 🥺 + * encodes a message into bottom */ -pub async fn bottom_encode(string: &str) -> String { - encode_string(&string) +pub async fn bottom_encode(msg: &str) -> String { + encode_string(&msg) } /* - * decodes a bottom string into english 🥸 + * decodes a bottom string into english */ -pub async fn bottom_decode(string: &str) -> String { - let decoded = decode_string(&string); +pub async fn bottom_decode(msg: &str) -> String { + let decoded = decode_string(&msg); match decoded { Ok(ret) => ret, Err(why) => { - println!("couldn't decode {:?}! ({:?})", string, why); + println!("couldn't decode {:?}! ({:?})", msg, why); "couldn't decode that! sowwy 🥺".to_string() } } -- cgit v1.2.3