NightDev Community Forums

Teak’s !HowLong Following Nightbot Command


#37

here’s something else just to make it a little more simple. just change both of the “USERNAME” sections to $(channel)
just makes it so that there is no editing required of the custom Command


#38

i must be pretty dumb hahahah… were do i type this info and what would i write if my channel name is niitro89? thanks guys love the idea of this command


#39

You type this command directly into twitch chat and it should work:

!addcom !howlong $(touser) Has Been Following $(channel) On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=$(channel)&user=$(touser))

$(channel) is replaced with the channel name wherever it is ran

$(touser) is replaced with whatever name is used immediately after the command and defaults to the person who ran it if none is provided.

If you want it to be restricted to a certain userlevel you would add -ul=[userlevel] after !howlong


#40

Do I use this as the command or in the message part?? Also is this the one for the time added not the date? Thanks


#41

As i said:

so just copy paste what i wrote into twitch chat and it will work. Alternatively, if you are in the nightbot panel you can name it !howlong or whatever you want to call it, then paste this part in the message field:

$(touser) Has Been Following $(channel) On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=$(channel)&user=$(touser))

This one is just for dates i believe, not time since.


#42

Is there an option to show the “total” time an users has been following a channel if the user unfollowed the channel by mistake a sec and then refollowed it.
I mean, there is an option/command to add the “1st” followtime and “2nd” followtime and show the total?

Thanks.


#43

Twitch doesn’t store how many times you follow a channel so this isn’t possible.


#46

does not work for me i just get the reply not following for any that uses it.


#47

TURNS OUT if you just post this it works perfect i was doing as stated and changing username when infact this works $(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=monthday)


#48

Tried all these and it wasn’t working. Finally got it to WORK!! This works for sure guys just copy this and put it in your chat, real talk. All you need to do is change TWITCHUSERNAME with the Twitch Channel you are wanting the command in. Here’s what you copy… !addcom -ul=mod !howlong $(customapi https://api.rtainc.co/twitch/channels/TWITCHUSERNAME/followers/ $(touser))


#50

THANK YOU! THIS WORKED AND THE STUFF ABOVE DID NOT! I dont know why it didn’t work, but the api in this article did not work.


#51

Anyway to have the following command ignore the @ symbol when typing someone’s name to be checked on how long they have been following (i.e. “!howlong @username”). If not, I understand, the command is awesome that it just understands to use the command issuers name if no name is provided.


#52

How create command, which shows how long viewer has been following to my channel and so that it outputs not 2017/02/06, but 1 years 2 month.
When i use this link https://apis.rtainc.co/twitchbot/following?channel=$(touser)&user=$(touser)) as a result output i have : Please update this API to: https://api.rtainc.co/twitch/channels/CHANNEL/followers/VIEWER?format=[2].
Please tell me what i do wrong and how to do it correctly


#53

This will output what you’re looking for:

!commands add !followage $(touser) has been following $(channel) for $(urlfetch https://api.rtainc.co/twitch/channels/$(channel)/followers/$(touser)?format=[2])


#54

This is what i get when using the command. Please help. I’ve tried the first command but i wanted to keep it in the text form n not numbers.


#55

The main command in this post is no longer maintained please use this post instead.


#57

What type of command does this have to do?


#58

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

Simply copy and paste this in your chat to add the command.


#59

Command don’t work.
Error connecting to remote server.


#60

Make sure you don’t already have a !followsince command on your channel using a different api by typing !commands delete !followsince

Then try and copy-paste the command I posted above into your chat and it should work.