antiprefixer
This commit is contained in:
parent
7238073b68
commit
73acb42bd6
1 changed files with 5 additions and 1 deletions
|
@ -155,7 +155,11 @@ impl EventHandler for Handler {
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
let response = response.choices[0].message.content.as_str();
|
||||
let mut response = response.choices[0].message.content.as_str();
|
||||
|
||||
if let Some(unprefixed) = response.strip_prefix("Smolhaj: ") {
|
||||
response = unprefixed;
|
||||
}
|
||||
|
||||
let is_appropriate = !self
|
||||
.client
|
||||
|
|
Loading…
Reference in a new issue