mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 04:31:05 +08:00
fmt
This commit is contained in:
parent
38cfd2dce7
commit
686291755d
|
@ -69,9 +69,7 @@ impl Room {
|
|||
}
|
||||
}
|
||||
|
||||
fn room_id_default() -> RoomId {
|
||||
-1
|
||||
}
|
||||
fn room_id_default() -> RoomId { -1 }
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
struct InnerRoom {
|
||||
|
|
|
@ -50,9 +50,7 @@ pub fn help_msg() -> String { format!("{}\n{}", version_str(), HELP_MSG) }
|
|||
|
||||
static STARTUP_TIME: OnceLock<SystemTime> = OnceLock::new();
|
||||
|
||||
pub fn start_up_time() -> SystemTime {
|
||||
*STARTUP_TIME.get().expect("WTF, why did you panic?")
|
||||
}
|
||||
pub fn start_up_time() -> SystemTime { *STARTUP_TIME.get().expect("WTF, why did you panic?") }
|
||||
|
||||
/// 获得当前客户端的 id
|
||||
/// 防止串号
|
||||
|
|
|
@ -72,7 +72,7 @@ impl TailchatClientPy {
|
|||
pub fn get_tailchat_version(&self) -> String { crate::TAILCHAT_VERSION.to_string() }
|
||||
#[getter]
|
||||
pub fn get_startup_time(&self) -> SystemTime { crate::start_up_time() }
|
||||
|
||||
|
||||
#[pyo3(signature = (content, converse_id, group_id = None))]
|
||||
pub fn new_message(
|
||||
&self,
|
||||
|
|
Loading…
Reference in New Issue
Block a user