API, twitch age and how long someones been in my stream


#1

I’ve been looking around the internet, I cant seem to find the api for how long someones been in my stream and their twitch account age, like when they created their account. The commands for these are typically !howlong and !time.


#2
!commands add !howlong $(urlfetch https://2g.be/twitch/following.php?user=$(querystring $(touser))&channel=$(querystring $(channel))&format=mwdhms)

!commands add !time $(twitch $(touser) "{{displayName}} has been on Twitch for {{createdLength}}")

#4

For the !howlong, I meant how much total time they have spent in my channel, not how long they have been following.


#5

Nightbot is not capable of measuring the amount of time a user has spent in your channel.


#6

I seen someones channel have that feature, do you know how they did it?


#7

I imagine they have a bot that sits in their chat and keeps track of when chatters join and leave the chat. This means that it’s not possible to determine how long a user has spent in that chat before the bot began keeping track.


#8

I am guessing you dont know how to set that bot up right? Also thank you for your help.


#9

You will have to find a bot that offers that feature.


#10

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.