silly goober bot

feat(replace_link): add fxbsky

+3 -2
+3 -2
src/event_handler/replace_link.rs
··· 7 7 8 8 pub async fn handle(ctx: &Context, event: &FullEvent, _data: &Data) -> Result<()> { 9 9 if let FullEvent::Message { new_message } = event { 10 - let regex = Regex::new(r"(https?:\/\/(?:(www|vm)\.)?(x\.com|twitter\.com|reddit\.com|instagram\.com|tiktok\.com)\/[^\s]+)").unwrap(); 10 + let regex = Regex::new(r"(https?:\/\/(?:(www|vm)\.)?(x\.com|twitter\.com|reddit\.com|instagram\.com|tiktok\.com|bsky\.app)\/[^\s]+)").unwrap(); 11 11 let mut links: Vec<String> = Vec::new(); 12 12 13 13 for capture in regex.find_iter(&new_message.content) { ··· 22 22 .replace("https://instagram.com", "https://ddinstagram.com") 23 23 .replace("https://www.tiktok.com", "https://tfxktok.com") 24 24 .replace("https://vm.tiktok.com", "https://vm.vxtiktok.com") 25 - .replace("https://tiktok.com", "https://tfxktok.com"); 25 + .replace("https://tiktok.com", "https://tfxktok.com") 26 + .replace("https://bsky.app", "https://fxbsky.app"); 26 27 27 28 links.push(modified_url); 28 29 }