This commit is contained in:
shenjack 2024-06-16 22:23:29 +08:00
parent a02bb089a5
commit ed6af04570
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 3 deletions

View File

@ -146,7 +146,6 @@ pub async fn ica_delete_message_py(msg_id: ica::MessageId, client: &Client) {
pub async fn tailchat_new_message_py(
message: &tailchat::messages::ReceiveMessage,
client: &Client,
status: Arc<BotStatus>,
) {
verify_plugins();

View File

@ -62,7 +62,7 @@ pub async fn any_event(event: Event, payload: Payload, _client: Client, _status:
}
#[allow(clippy::collapsible_if)]
pub async fn on_message(payload: Payload, client: Client, status: Arc<BotStatus>) {
pub async fn on_message(payload: Payload, client: Client, _status: Arc<BotStatus>) {
if let Payload::Text(values) = payload {
if let Some(value) = values.first() {
let message: ReceiveMessage = match serde_json::from_value(value.clone()) {
@ -85,7 +85,7 @@ pub async fn on_message(payload: Payload, client: Client, status: Arc<BotStatus>
send_message(&client, &reply).await;
}
}
crate::py::call::tailchat_new_message_py(&message, &client, status.clone()).await;
crate::py::call::tailchat_new_message_py(&message, &client).await;
}
}
}