1
0

fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
syui 2024-03-30 11:29:57 +09:00
parent 4fca0e6335
commit c12a9fe8ec
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -52,6 +52,7 @@ pub fn c_bot(c: &Context) {
let vec: Vec<&str> = text.split_whitespace().collect(); let vec: Vec<&str> = text.split_whitespace().collect();
let handlev: Vec<&str> = handle.split('.').collect(); let handlev: Vec<&str> = handle.split('.').collect();
let mut handlev = handlev[0].trim().to_string(); 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://card.syui.ai/".to_owned() + &handlev;
let s = 0; let s = 0;
@ -323,7 +324,9 @@ pub fn c_bot(c: &Context) {
let text_limit = c_char(dd); let text_limit = c_char(dd);
if text_limit.len() > 3 { if text_limit.len() > 3 {
handlev = d.lines().collect::<Vec<_>>()[0].to_string(); handlev = d.lines().collect::<Vec<_>>()[0].to_string();
let ten_p = d.lines().collect::<Vec<_>>()[1].to_string(); if d.lines().collect::<Vec<_>>().len() >= 1 {
ten_p = d.lines().collect::<Vec<_>>()[1];
}
if ten_p != "true" { if ten_p != "true" {
link = "https://card.syui.ai/".to_owned() + &handlev; link = "https://card.syui.ai/".to_owned() + &handlev;
e = link.chars().count(); e = link.chars().count();