Package com.fussuchalice.bot
Class Telemetry
java.lang.Object
com.fussuchalice.bot.Telemetry
The Telemetry class offers functionality to log and display telemetry data for a chatbot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current time and formats it according to the specified format.void
Outputs the header for the telemetry data table.void
outTableValue
(String chatId, String command, String time) Outputs a row of telemetry data to the table.
-
Constructor Details
-
Telemetry
public Telemetry()
-
-
Method Details
-
outHeader
public void outHeader()Outputs the header for the telemetry data table. -
outTableValue
Outputs a row of telemetry data to the table.- Parameters:
chatId
- The chat ID associated with the telemetry data.command
- The command issued in the telemetry data.time
- The timestamp of the telemetry data.
-
getCurrentTimeFormatted
Retrieves the current time and formats it according to the specified format.- Returns:
- The current time in the format "dd.HH.mm ss:mm:ss".
-