mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
45c64208b4
commit
0fba84c193
|
|
@ -123,7 +123,11 @@ class ChatObserver:
|
|||
self.last_cold_chat_check = current_time
|
||||
|
||||
# 判断是否冷场
|
||||
is_cold = True if self.last_message_time is None else (current_time - self.last_message_time) > self.cold_chat_threshold
|
||||
is_cold = (
|
||||
True
|
||||
if self.last_message_time is None
|
||||
else (current_time - self.last_message_time) > self.cold_chat_threshold
|
||||
)
|
||||
|
||||
# 如果冷场状态发生变化,发送通知
|
||||
if is_cold != self.is_cold_chat_state:
|
||||
|
|
|
|||
Loading…
Reference in New Issue