Files
Pastel/gaming_deals_bot/matrix_client.py
Claude 30c9872d04 Add presence heartbeat to keep bot shown as online
Adds a background asyncio.Task that calls set_presence("online") every
60 seconds to keep the homeserver presence status fresh. On startup the
bot sets itself online and spawns the heartbeat; on shutdown the task is
cancelled and presence is set to offline before closing the client.

https://claude.ai/code/session_01Nu3N2okrfJV3meatEmYdrB
2026-02-28 08:14:46 +00:00

4.0 KiB