diff --git a/src/bot.rs b/src/bot.rs index 8dc27cb..0e1e19e 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -556,7 +556,7 @@ pub fn c_bot_feed(c: &Context) { let mut prompt_sub = "".to_string(); let mut prompt_chat = "".to_string(); - if com == "@ai" || com == "/ai" || com == "ai" { + if com == "@ai" || com == "/ai" { prompt_chat = vec[1..].join(" "); } else { prompt = vec[1..].join(" "); @@ -931,7 +931,7 @@ pub fn c_bot_feed(c: &Context) { println!("{}", str_rep); w_cid(cid.to_string(), log_file(&"n1"), true); } - } else if com == "@ai" || com == "/ai" || com == "ai" { + } else if com == "@ai" || com == "/ai" { let str_openai = openai::post_request(prompt_chat.to_string()).await; let text_limit = c_char(str_openai); let str_rep = reply::post_request(