1
0

fix bot len return
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
syui 2024-05-26 16:36:40 +09:00
parent b540d0c007
commit 7134c2dd98
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 708130762787cd1b19dd0986612d32de5347747c
Subproject commit 8de2b2ce482f5892445598c3b034f1d868422bfb

View File

@ -65,7 +65,11 @@ pub fn c_bot(c: &Context) {
let mut prompt = "".to_string();
let mut prompt_sub = "".to_string();
let mut prompt_chat = "".to_string();
if reason == "mention" {
if vec.len() == 1 {
return;
}
com = vec[1].trim().to_string();
prompt = vec[2..].join(" ");
prompt_chat = vec[1..].join(" ");