added dm on all python errors. (Untested)

This commit is contained in:
2025-04-02 18:18:33 +02:00
parent a6d40b9527
commit eb0991df53
3 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ async fn handle_message(msg: tungstenite::protocol::Message, args: Args, owners:
if let Some(stripped) = text.strip_prefix("json:") {
let t_json: Value = serde_json::from_str(stripped).unwrap();
if t_json.get("error").is_some() {
send_dm("Unknown internal Python error occurred!".to_string(), args, owners).await;
send_dm("Unknown internal Python error occurred: Websocket response error.".to_string(), args, owners).await;
}
}