From 06c2374d5d528c04d003a296112d5c87974f0d47 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 21 Jan 2026 03:04:12 +0900 Subject: [PATCH] fix card url --- src/bot.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 1026256..49e2988 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -57,7 +57,7 @@ pub fn c_bot(c: &Context) { let mut handlev = handlev[0].trim().to_string(); let mut ten_p = "false"; - let mut link = "https://card.syui.ai/".to_owned() + &handlev; + let mut link = "https://syui.ai/@".to_owned() + handle; let s = 0; let mut e = link.chars().count(); @@ -229,7 +229,7 @@ pub fn c_bot(c: &Context) { handlev = handle.split('.').next().unwrap_or("").to_string(); } if !handlev.is_empty() { - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -271,7 +271,7 @@ pub fn c_bot(c: &Context) { let text_limit = c_char(dd); if text_limit.len() > 3 { handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -306,7 +306,7 @@ pub fn c_bot(c: &Context) { let text_limit = c_char(dd); if text_limit.len() > 3 { handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -378,7 +378,7 @@ pub fn c_bot(c: &Context) { println!("ten_p {}", ten_p); } if ten_p != "true" { - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -412,7 +412,7 @@ pub fn c_bot(c: &Context) { let dd = "\n".to_owned() + &d.to_string(); let text_limit = c_char(dd); handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; println!("{}", e); e = link.chars().count(); if text_limit.len() > 3 { @@ -448,7 +448,7 @@ pub fn c_bot(c: &Context) { let dd = "\n".to_owned() + &d.to_string(); let text_limit = c_char(dd); handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; println!("{}", e); e = link.chars().count(); if text_limit.len() > 3 { @@ -484,7 +484,7 @@ pub fn c_bot(c: &Context) { let dd = "\n".to_owned() + &d.to_string(); let text_limit = c_char(dd); handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; println!("{}", e); e = link.chars().count(); if text_limit.len() > 3 { @@ -719,7 +719,7 @@ pub fn c_bot_feed(c: &Context) { let mut handlev = handlev[0].trim().to_string(); let mut ten_p = "false"; - let mut link = "https://card.syui.ai/".to_owned() + &handlev; + let mut link = "https://syui.ai/@".to_owned() + handle; let s = 0; let mut e = link.chars().count(); @@ -882,7 +882,7 @@ pub fn c_bot_feed(c: &Context) { handlev = handle.split('.').next().unwrap_or("").to_string(); } if !handlev.is_empty() { - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -924,7 +924,7 @@ pub fn c_bot_feed(c: &Context) { let text_limit = c_char(dd); if text_limit.len() > 3 { handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -959,7 +959,7 @@ pub fn c_bot_feed(c: &Context) { let text_limit = c_char(dd); if text_limit.len() > 3 { handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -1031,7 +1031,7 @@ pub fn c_bot_feed(c: &Context) { println!("ten_p {}", ten_p); } if ten_p != "true" { - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; e = link.chars().count(); let str_rep = reply_link::post_request( text_limit.to_string(), @@ -1065,7 +1065,7 @@ pub fn c_bot_feed(c: &Context) { let dd = "\n".to_owned() + &d.to_string(); let text_limit = c_char(dd); handlev = d.lines().collect::>()[0].to_string(); - link = "https://card.syui.ai/".to_owned() + &handlev; + link = "https://syui.ai/@".to_owned() + handle; println!("{}", e); e = link.chars().count(); if text_limit.len() > 3 {