diff --git a/ica-rs/src/ica.rs b/ica-rs/src/ica.rs index 2e7bbb6..b54d080 100644 --- a/ica-rs/src/ica.rs +++ b/ica-rs/src/ica.rs @@ -8,7 +8,7 @@ use tracing::{event, span, Level}; use crate::config::IcaConfig; use crate::error::{ClientResult, IcaError}; -use crate::StopGetter; +use crate::{version_str, StopGetter}; /// icalingua 客户端的兼容版本号 pub const ICA_PROTOCOL_VERSION: &str = "2.12.12"; @@ -49,7 +49,7 @@ pub async fn start_ica(config: &IcaConfig, stop_reciver: StopGetter) -> ClientRe if config.notice_start { for room in config.notice_room.iter() { let startup_msg = crate::data_struct::ica::messages::SendMessage::new( - format!("shenbot v {}\nica-async-rs v{}", crate::VERSION, crate::ICA_VERSION), + format!("{}\n启动成功", version_str()), *room, None, ); diff --git a/ica-rs/src/tailchat.rs b/ica-rs/src/tailchat.rs index 0ae8914..f5fd2f9 100644 --- a/ica-rs/src/tailchat.rs +++ b/ica-rs/src/tailchat.rs @@ -101,7 +101,7 @@ pub async fn start_tailchat( event!(Level::INFO, "发送启动消息到: {}|{}", con, group); let startup_msg = crate::data_struct::tailchat::messages::SendingMessage::new_without_meta( - version_str(), + format!("{}\n启动成功", version_str()), con.clone(), Some(group.clone()), );