From dec178a883769e221c8da3c125f83c6512b733e3 Mon Sep 17 00:00:00 2001 From: uku Date: Fri, 13 Oct 2023 18:31:21 +0200 Subject: move client & logic into api module --- src/api/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/api/mod.rs') diff --git a/src/api/mod.rs b/src/api/mod.rs index c2ad56f..6224ab1 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1 +1,11 @@ +use once_cell::sync::Lazy; + pub mod guzzle; +pub mod shiggy; + +pub static REQWEST_CLIENT: Lazy = Lazy::new(|| { + reqwest::Client::builder() + .user_agent("teawieBot/0.1.0") + .build() + .unwrap_or_default() +}); -- cgit v1.2.3