You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use crate::utils::error::BotResult;
|
|
|
|
static INSPIROBOT_ENDPOINT: &str = "https://inspirobot.me/api?generate=true";
|
|
|
|
pub async fn get_inspirobot_image() -> BotResult<String> {
|
|
let response = reqwest::get(INSPIROBOT_ENDPOINT).await?;
|
|
let url = response.text().await?;
|
|
|
|
Ok(url)
|
|
}
|