diff --git a/src/main.rs b/src/main.rs index 4fbd0c9..b02ffbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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