mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
更新版本号和添加状态属性
This commit is contained in:
parent
0420cf36b2
commit
85608570bf
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ica-rs"
|
||||
version = "0.4.9"
|
||||
version = "0.4.10"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -94,6 +94,11 @@ class IcaClient:
|
|||
"""
|
||||
def send_message(self, message: SendMessage) -> bool:
|
||||
...
|
||||
|
||||
@property
|
||||
def status() -> IcaStatus:
|
||||
...
|
||||
|
||||
def debug(self, message: str) -> None:
|
||||
"""向日志中输出调试信息"""
|
||||
def info(self, message: str) -> None:
|
||||
|
|
|
@ -238,6 +238,11 @@ impl IcaClientPy {
|
|||
})
|
||||
}
|
||||
|
||||
#[getter]
|
||||
pub fn get_status(&self) -> IcaStatusPy {
|
||||
IcaStatusPy::new()
|
||||
}
|
||||
|
||||
pub fn debug(&self, content: String) {
|
||||
debug!("{}", content);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user