This commit is contained in:
shenjack 2024-08-18 02:38:15 +08:00
parent ee2c51fbcc
commit 313f859c5c
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 3 deletions

View File

@ -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,
);

View File

@ -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()),
);