NightDev Community Forums

How to do a followage command


#1

how can i do a followage command help me pls


#2

You could try searching the forum where such questions have been asked many times in the past:
!howlong has suddenly stop working!
!followage command is no longer working

Here is one command that will do what you need and you can copy paste into chat:

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

#3

its not working for me


#4

Is your name on twitch the same as the one on the forum? If so, I just tried your command in your chat and it seems to be working fine:


#5

im having a problem to .
when i type in " $(touser) Has Been Following Epiclollipop On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=Epiclollipop&user=$(touser))" its says not following.

im a mod in a channle and im trying to fix this for him … so i changed the channel to his twitch name


#6

You don’t need to change $(channel), that is a variable that nightbot does automatically.

I believe that api no longer works, If you use the command i posted (and that you quoted, but aren’t using) it should work fine, it does the whole quote and followage for you, so you only need the customapi in the command, nothing else.


#7

Thanks i got it to work now


#9

So I used this as my followage command: !commands add !followage $(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=mwdhms) This worked but I wanted to see if it could just be in moths and days rather than this He has been following for longer than at least 2 weeks and i was confused by this


#10

If someone unfollows by accident those changes are still updated in Twitch’s API and resets based on that time.


#11

is there any way that i can edit the api command to just display the months and days rather than months, days, hours, and seconds


#12

Yes, you can change the date format in the url to months, like this:

https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=months


#13

what would the api be for months and days then be? HELP PLEASE


#14

I understand how to do to change it to day or moth i just need the api that has just month and day


#15

Please refrain from posting the same question all over our forums, @zike7

Perhaps @xgerhard can help you with your question, since it is his API.


#16

@zike7
https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=monthday
Example: X has been following Y for 24 months, 20 days
Add &notext at the end of the url to only show the months/days part.


#17

So I Got this part and it didn’t work am I doing something wrong? @xgerhard


#18

!commands edit !followsince $(urlfetch https://2g.be/twitch/following.php?user=$(touser)&channel=$(channel)&format=monthday)
No need to change anything, just copy paste :slight_smile:


#19

Ok thanks so much, its wierd being on the other end on telling people to do commands :slight_smile:


#20

i got a new problem with it . it says the same time for all persons doesnt matter if it me that type it or someone else . It starts with 17 H i just followed a channle and it been like 1-2 h and it says 17H


#21

Yeah I see the problem, the one with days, hours, minutes etc. is counting down from the day you follow, not the exact time. I’ll fix that this weekend.