startValidator

Starts a validator routine.

This will validate the API access token and output to the terminal for how much longer it is valid. If it has expired, it will exit the program.

Note: Must be called from within a Fiber.

version(TwitchSupport && WithTwitchPlugin)
private
void
startValidator

Parameters

plugin TwitchPlugin

The current TwitchPlugin.