fix bot len return
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:
Submodule .config/ai/scpt updated: 7081307627...8de2b2ce48
@@ -65,7 +65,11 @@ pub fn c_bot(c: &Context) {
|
|||||||
let mut prompt = "".to_string();
|
let mut prompt = "".to_string();
|
||||||
let mut prompt_sub = "".to_string();
|
let mut prompt_sub = "".to_string();
|
||||||
let mut prompt_chat = "".to_string();
|
let mut prompt_chat = "".to_string();
|
||||||
|
|
||||||
if reason == "mention" {
|
if reason == "mention" {
|
||||||
|
if vec.len() == 1 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
com = vec[1].trim().to_string();
|
com = vec[1].trim().to_string();
|
||||||
prompt = vec[2..].join(" ");
|
prompt = vec[2..].join(" ");
|
||||||
prompt_chat = vec[1..].join(" ");
|
prompt_chat = vec[1..].join(" ");
|
||||||
|
Reference in New Issue
Block a user