fix bot len return
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
This commit is contained in:
parent
b540d0c007
commit
c366c812cf
@ -1 +1 @@
|
|||||||
Subproject commit 708130762787cd1b19dd0986612d32de5347747c
|
Subproject commit 8de2b2ce482f5892445598c3b034f1d868422bfb
|
@ -65,6 +65,9 @@ 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 vec.len() == 1 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if reason == "mention" {
|
if reason == "mention" {
|
||||||
com = vec[1].trim().to_string();
|
com = vec[1].trim().to_string();
|
||||||
prompt = vec[2..].join(" ");
|
prompt = vec[2..].join(" ");
|
||||||
|
Loading…
Reference in New Issue
Block a user