From 730b997cab02eb3c31c06968626b28ac3bed6db9 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 13 Apr 2024 11:25:58 +0900 Subject: [PATCH] fix --- src/bot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(