antiprefixer

master
Skye 2 years ago
parent 7238073b68
commit 73acb42bd6
Signed by: me
GPG Key ID: 0104BC05F41B77B8

@ -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…
Cancel
Save