mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
更新版本号为1.3.0,修复了ica-async-rs-sync-py的回复消息格式
This commit is contained in:
parent
469db17c3b
commit
47b53b245b
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user