summaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-04-07 22:59:35 -0400
committerseth <[email protected]>2023-04-07 23:13:40 -0400
commit0d0e68fec058b7a8b8e9a4768a183ec08ffad770 (patch)
tree6f78cde40cf569a360b7dcce285417e9072e69dc /src/utils.rs
parent065ac97194b7640ca350b4770b404d855bf98b17 (diff)
add bottom subcommands
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs14
1 files changed, 7 insertions, 7 deletions
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<String> {
}
/*
- * 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()
}
}