summaryrefslogtreecommitdiff
path: root/src/api/mod.rs
blob: 2ce664e37fd038d05e4b144169f0b740b71c8624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use once_cell::sync::Lazy;

pub mod guzzle;
pub mod shiggy;

pub const USER_AGENT: &str = "teawieBot/";

pub static REQWEST_CLIENT: Lazy<reqwest::Client> = Lazy::new(|| {
	let version = option_env!("CARGO_PKG_VERSION").unwrap_or("development");

	reqwest::Client::builder()
		.user_agent(format!("{USER_AGENT}/{version}"))
		.build()
		.unwrap_or_default()
});