From ffacf1c8fc820de3890ba6231b644e9e4a65ce28 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 14 Apr 2022 13:06:54 -0400 Subject: FLAKE --- src/commands/actions.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commands/actions.rs') 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()); -- cgit v1.2.3