-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Enhancement Request
Add a runtime indicator to the !status command output to show how long the bot has been running. This will help verify that the bot is using the newest deployed code after deployments.
Proposed Implementation
Add a "Runtime" field to the status table that shows:
- Bot uptime since startup
- Format: "2h 34m" or "1d 5h 23m" for longer runtimes
Example Output
Index | Target | Poll (min) | Notifications | Last Checked | Runtime
------|----------------------------------|------------|---------------|--------------|----------
1 | City: Dallas, Texas, US | 60 | machines | 5m ago | 2h 34m
2 | City: Philadelphia, Pennsylvania | 60 | machines | 3m ago |
Or alternatively, add as a header line above the table:
Bot Runtime: 2h 34m
Index | Target | Poll (min) | Notifications | Last Checked
------|----------------------------------|------------|---------------|-------------
...
Benefits
- Quick verification after deployments that new code is running
- Debugging aid for understanding bot restart behavior
- User confidence that the bot is actively running
Technical Notes
- Track bot startup time in main.py or a global location
- Calculate runtime as
datetime.now() - startup_time - Format duration in human-readable format (hours, minutes, days)
- Consider where to display: as table column, header, or footer
Priority
Low - Quality of life improvement for monitoring and deployment verification.
Reactions are currently unavailable