Compare commits
1 Commits
main
...
hermes-rep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac54aee53d |
@ -163,11 +163,10 @@ class MatrixBot:
|
||||
note = "thinking"
|
||||
snippet = note[:64]
|
||||
now = time.monotonic()
|
||||
should_send = False
|
||||
if snippet and snippet != last_note:
|
||||
should_send = True
|
||||
elif now - last_sent >= max(60.0, self._settings.thinking_interval_sec * 2):
|
||||
should_send = True
|
||||
should_send = (
|
||||
(snippet and snippet != last_note)
|
||||
or now - last_sent >= max(60.0, self._settings.thinking_interval_sec * 2)
|
||||
)
|
||||
if should_send:
|
||||
msg = f"Still thinking — {snippet}…"
|
||||
await self._client.send_message(token, room_id, msg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user