summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/mod.rs4
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()
});