diff --git a/ica-rs/plugins/base.py b/ica-rs/plugins/base.py index 3507cb1..258dd3e 100644 --- a/ica-rs/plugins/base.py +++ b/ica-rs/plugins/base.py @@ -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) diff --git a/ica-rs/src/client.rs b/ica-rs/src/client.rs index 4e4dd7e..24198c2 100644 --- a/ica-rs/src/client.rs +++ b/ica-rs/src/client.rs @@ -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 { diff --git a/ica-rs/src/py/class.rs b/ica-rs/src/py/class.rs index 778a1ae..a3c6c37 100644 --- a/ica-rs/src/py/class.rs +++ b/ica-rs/src/py/class.rs @@ -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);