diff options
| author | seth <[email protected]> | 2023-11-15 21:58:01 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-16 03:00:07 +0000 |
| commit | c1c916678e0afec308d905c97d9ccd241c8a1edf (patch) | |
| tree | a7f7f9c7ad2417fe4b990cd9c69d391e7d14d344 /src/api | |
| parent | a4a9353e1c8f902b7d7b3cf74e3e5b129c214330 (diff) | |
feat: add version command
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index 6224ab1..a1e0e97 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -3,9 +3,11 @@ use once_cell::sync::Lazy; pub mod guzzle; pub mod shiggy; +pub const USER_AGENT: &str = "teawieBot/0.1.0"; + pub static REQWEST_CLIENT: Lazy<reqwest::Client> = Lazy::new(|| { reqwest::Client::builder() - .user_agent("teawieBot/0.1.0") + .user_agent(USER_AGENT) .build() .unwrap_or_default() }); |
