kameloso.plugins.stopwatch

A simple stopwatch plugin. It offers the ability to start and stop timers, to get how much time passed between the creation of a stopwatch and the cessation of it.

Members

Classes

StopwatchPlugin
class StopwatchPlugin

The Stopwatch plugin offers the ability to start stopwatches, and print how much time elapsed upon stopping them.

Functions

deserialiseStopwatches
void deserialiseStopwatches(StopwatchPlugin plugin)

Deserialises the stopwatches from a temporary file.

onCommandStopwatch
void onCommandStopwatch(StopwatchPlugin plugin, IRCEvent event)

Manages stopwatches.

onWelcome
void onWelcome(StopwatchPlugin plugin)

Deserialises stopwatches saved to disk upon successfully registering to the server, restoring any ongoing watches.

selftest
auto selftest(StopwatchPlugin _, Selftester s)

Performs self-tests against another bot.

serialiseStopwatches
void serialiseStopwatches(StopwatchPlugin plugin)

Serialises the stopwatches to a temporary file.

teardown
void teardown(StopwatchPlugin plugin)

Tears down the StopwatchPlugin, serialising any ongoing stopwatches to file, so they aren't lost to the ether.

Structs

StopwatchSettings
struct StopwatchSettings

All Stopwatch plugin runtime settings aggregated.

See Also

Meta