Chatbot Command APIs

Login

Commands:

Followage (Login Required)
https://commands.garretcharp.com/twitch/followage/{StreamerUsername}/{ViewerUsername}?format={Format}&ping={true|false}&moderatorId={ModeratorId}

StreamerUsername is the username of the streamer.

ViewerUsername is the username of the viewer.

format is the format of the output. The default format is ymdhis. More on formats below.

ping is whether or not to ping the streamer and viewer in the output.

moderatorId is the Twitch ID of the moderator to use for request authentication (if applicable).

Example Formats:

ymwdhis - x years, x months, x weeks, x days, x hours, x minutes, x seconds.

ymdhis (default) - x years, x months, x days, x hours, x minutes, x seconds.

ym - x years, x months.

The format can be any combination of years/months/weeks/days/hours/minutes/seconds. The only requirement is that they appear in the correct order (i.e. days cannot come before years).

Nightbot
Using Streamer Login

!commands add !followage $(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser))

Using Moderator Login

!commands add !followage $(urlfetch https://commands.garretcharp.com/twitch/followage/$(channel)/$(touser)?moderatorId={moderatorId})

Note: Login so that the moderatorId value is populated with your account's Twitch ID.

Random Chatter (Login Required)
https://commands.garretcharp.com/twitch/chatter/{StreamerUsername}?count={Count}&moderatorId={ModeratorId}

StreamerUsername is the username of the streamer.

count is the number of chatters to return. The default is 1.

moderatorId is the Twitch ID of the moderator to use for request authentication (if applicable).

Nightbot
Using Streamer Login

!commands add !randomuser $(urlfetch https://commands.garretcharp.com/twitch/chatter/$(channel))

Using Moderator Login

!commands add !randomuser $(urlfetch https://commands.garretcharp.com/twitch/chatter/$(channel)?moderatorId={moderatorId})

Note: Login so that the moderatorId value is populated with your account's Twitch ID.