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.
2b-rs/src/providers/music/inspirobot.rs

11 lines
289 B
Rust

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)
}