mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 04:31:05 +08:00
pub~
This commit is contained in:
parent
ee2c51fbcc
commit
313f859c5c
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -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()),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user