onCommandWatchtime

Implements !watchtime; the ability to query the bot for how long the user (or a specified user) has been watching any of the channel's streams.

version(TwitchSupport && WithTwitchPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).onEvent(IRCEvent.Type.SELFCHAN).permissionsRequired(Permissions.anyone).channelPolicy(ChannelPolicy.home).fiber(true).addCommand(IRCEventHandler.Command().word("watchtime").policy(PrefixPolicy.prefixed).description("Reports how long a user has been watching the channel's streams.").addSyntax("$command [optional nickname]")).addCommand(IRCEventHandler.Command().word("wt").policy(PrefixPolicy.prefixed).hidden(true)).addCommand(IRCEventHandler.Command().word("hours").policy(PrefixPolicy.prefixed).hidden(true))
void
onCommandWatchtime