Initial project setup with basic structure, including environment configuration, command handling, and Lavalink integration.
This commit is contained in:
7
src/utils.rs
Normal file
7
src/utils.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
// src/utils.rs
|
||||
use std::env;
|
||||
|
||||
/// Retrieves an environment variable or panics if it's not set.
|
||||
pub fn env_var(key: &str) -> String {
|
||||
env::var(key).expect(&format!("Environment variable {} not set", key))
|
||||
}
|
||||
Reference in New Issue
Block a user