.uptime and Cleaner .whom LayoutThis Mediabot v3 update improves the Partyline with two small but useful operator-facing changes:
.uptime
.whom display layout
Nothing flashy, but exactly the kind of quality-of-life work that makes the Partyline feel more like a real administration console.
.uptimeA new Partyline command was added:
.uptime
It shows useful runtime information directly from the Partyline:
Uptime:
Bot : 2h 14m 03s
Process : pid 12345
Name : Mediabot v3.2dev-...
Server : 14d 3h 22m 10s
The command reports:
bot uptime
process PID
bot name/version
server uptime from /proc/uptime
This avoids having to leave the Partyline or use IRC public commands just to check whether the bot or host has been running cleanly.
.whom outputThe .whom display was also improved.
Since the Partyline can now show reverse DNS plus IP addresses, some entries can be long:
teuk@aste-genev-bois-151-1-6-163.w82-121.abo.wanadoo.fr/82.121.132.163
The old fixed-width layout was too narrow for that.
The new layout uses a dynamic Nick/Host column and keeps the display readable.
Important detail:
the IP address is preserved
only the reverse DNS part may be shortened if needed
That matters because the IP is the reliable admin information. Reverse DNS is helpful context, but it must not hide or damage the IP.
The new .uptime command is listed in .help.
It also goes through the existing Partyline command metrics path, like the other Partyline commands.
A new static regression test was added:
t/cases/14_partyline_uptime_whom.t
It checks that:
.uptime is dispatched
_cmd_uptime exists
_format_duration exists
/proc/uptime is used for server uptime
.help documents .uptime
.whom uses the Nick/Host header
.whom uses dynamic rows
the old narrow fixed header is gone
This helps prevent the Partyline from regressing back to the older cramped display.
Mediabot/Partyline.pm
t/cases/14_partyline_uptime_whom.t
⏱️ Tempus Revelio: add Partyline uptime and improve whom layout
This is a small but useful operator-console improvement.
The Partyline now gives better runtime visibility and displays connected users more cleanly, especially when reverse DNS and IP information are shown together.
Mediabot keeps getting sharper, one practical admin feature at a time.
You must be logged in to reply.