fix build
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
10
src/bot.rs
10
src/bot.rs
@@ -270,7 +270,6 @@ pub fn c_bot(c: &Context) {
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
if text_limit.len() > 3 {
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
e = link.chars().count();
|
||||
let str_rep = reply_link::post_request(
|
||||
@@ -305,7 +304,6 @@ pub fn c_bot(c: &Context) {
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
if text_limit.len() > 3 {
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
e = link.chars().count();
|
||||
let str_rep = reply_link::post_request(
|
||||
@@ -369,7 +367,6 @@ pub fn c_bot(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
let ten_l = d.lines().collect::<Vec<_>>().len();
|
||||
println!("handlev {}", handlev);
|
||||
println!("ten_l {}", ten_l);
|
||||
@@ -411,7 +408,6 @@ pub fn c_bot(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
println!("{}", e);
|
||||
e = link.chars().count();
|
||||
@@ -447,7 +443,6 @@ pub fn c_bot(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
println!("{}", e);
|
||||
e = link.chars().count();
|
||||
@@ -483,7 +478,6 @@ pub fn c_bot(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
println!("{}", e);
|
||||
e = link.chars().count();
|
||||
@@ -923,7 +917,6 @@ pub fn c_bot_feed(c: &Context) {
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
if text_limit.len() > 3 {
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
e = link.chars().count();
|
||||
let str_rep = reply_link::post_request(
|
||||
@@ -958,7 +951,6 @@ pub fn c_bot_feed(c: &Context) {
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
if text_limit.len() > 3 {
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
e = link.chars().count();
|
||||
let str_rep = reply_link::post_request(
|
||||
@@ -1022,7 +1014,6 @@ pub fn c_bot_feed(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
let ten_l = d.lines().collect::<Vec<_>>().len();
|
||||
println!("handlev {}", handlev);
|
||||
println!("ten_l {}", ten_l);
|
||||
@@ -1064,7 +1055,6 @@ pub fn c_bot_feed(c: &Context) {
|
||||
let d = String::from_utf8_lossy(&output.stdout);
|
||||
let dd = "\n".to_owned() + &d.to_string();
|
||||
let text_limit = c_char(dd);
|
||||
handlev = d.lines().collect::<Vec<_>>()[0].to_string();
|
||||
link = "https://syui.ai/@".to_owned() + handle;
|
||||
println!("{}", e);
|
||||
e = link.chars().count();
|
||||
|
||||
Reference in New Issue
Block a user