fix bot len return
This commit is contained in:
parent
b540d0c007
commit
a8fd189a63
@ -1 +1 @@
|
||||
Subproject commit 708130762787cd1b19dd0986612d32de5347747c
|
||||
Subproject commit 9576b5bc75d826cfc9f95ac734be882a04734960
|
@ -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(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user