更新版本号为1.3.0,修复了ica-async-rs-sync-py的回复消息格式

This commit is contained in:
shenjack 2024-02-25 21:36:44 +08:00
parent 469db17c3b
commit 47b53b245b
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@ else:
NewMessage = TypeVar("NewMessage")
IcaClient = TypeVar("IcaClient")
_version_ = "1.1.0"
_version_ = "1.3.0"
def on_message(msg: NewMessage, client: IcaClient) -> None:
if not (msg.is_from_self or msg.is_reply):
if msg.content == "/bot":
reply = msg.reply_with(f"ica-async-rs-sync-py {_version_}({client.version})")
reply = msg.reply_with(f"ica-async-rs({client.version})-sync-py {_version_}")
client.send_message(reply)

View File

@ -44,8 +44,8 @@ pub async fn delete_message(client: &Client, message: &DeleteMessage) -> bool {
/// ```typescript
/// async fetchHistory(messageId: string, roomId: number, currentLoadedMessagesCount: number)
/// ```
#[allow(dead_code)]
pub async fn fetch_history(client: &Client, roomd_id: RoomId) -> bool { false }
// #[allow(dead_code)]
// pub async fn fetch_history(client: &Client, roomd_id: RoomId) -> bool { false }
#[derive(Debug, Clone)]
pub struct IcalinguaStatus {

View File

@ -194,7 +194,7 @@ impl IcaClientPy {
#[getter]
pub fn get_status(&self) -> IcaStatusPy { IcaStatusPy::new() }
#[getter]
pub fn get_verison(&self) -> String { crate::VERSION.to_string() }
pub fn get_version(&self) -> String { crate::VERSION.to_string() }
pub fn debug(&self, content: String) {
debug!("{}", content);