You tired of how your viewers asking you HOW LONG in your chat? WELL WE GOT YOU COVERED!
This was out of personal need and Teak from TeakSoftware.com and our own NightDev extraordinaire stepped forward to help me out. So I thought I would share with the community on how to add it to their own chat and allow users to check how long they have been following for.
Now Teak went through the code/command and had it pretty much setup for allowing allow of ways for streamers and users to use said code to allow people to check when they 1st followed a channel they are in.
NOTE: The command has to be setup by the streamers with Nightbot to work. This is not a global feature.
The bases of the code is to allow a user to type !howlong in the streamers chat and it will in return give the date the followed. There is a basic cool down time for the command but if you feel like the command would be spammed, Teak has also set it up to allow !howlong USERNAME so you can have it set to MOD only command.
So let’s get right into it.
The basic code is
!addcom !howlong $(touser) Has Been Following USERNAME On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=USERNAME&user=$(touser))
NOTE: Make sure to change USERNAME to your Twitch USERNAME
Then all a user has to do is type !howlong in chat and Nightbot will return.
Now if you want to set it to REG or MOD, all you would need to do is add a userlevel variable.
!addcom -ul=mod !howlong $(touser) Has Been Following USERNAME On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=USERNAME&user=$(touser))
NOTE: Make sure to change USERNAME to your Twitch USERNAME
Then a REG user can use the basic !howlong command or a MOD can do !howlong USERNAME
And that is it!
Vaughn Whiskey