aboutsummaryrefslogtreecommitdiff
path: root/src/commands/actions.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-04-14 13:06:54 -0400
committerCara Salter <cara@devcara.com>2022-04-18 23:05:25 -0400
commitffacf1c8fc820de3890ba6231b644e9e4a65ce28 (patch)
tree475537cef44f8eb0e7ed1269fd8c76e700c62918 /src/commands/actions.rs
parent9b4707192557cdd64dd82c5883e54758d0d66512 (diff)
downloadglitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.tar.gz
glitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.zip
FLAKE
Diffstat (limited to 'src/commands/actions.rs')
-rw-r--r--src/commands/actions.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands/actions.rs b/src/commands/actions.rs
index 63d00fb..a283238 100644
--- a/src/commands/actions.rs
+++ b/src/commands/actions.rs
@@ -114,6 +114,8 @@ pub async fn hug(
Ok(())
}
+
+/// Takes in a specific vector of URLs and returns a random one
fn get_random_url_from_vec(vec: Vec<&str>) -> &str {
let mut url = "";
let rand = rand::thread_rng().gen_range(0..vec.len());