Copy and Paste this without changing anything
!count The follower count for this channel is $(customapi https://api.rtainc.co/twitch/channels/$(channel)/followers/count?format=[1]).
Did it, and it still didnāt work
@mye36m3 You forgot to close the parenthesis for customapi.
Try this: The follower count for this channel is $(customapi https://api.rtainc.co/twitch/channels/$(channel)/followers/count?format=[1]).
@mye36m3 Instead of saying that you have done it and itās not working could you possibly provide a screenshot of what is going wrong or say what nightbot is returning when the command is run? Aaronās command and HarleyAliveās commands both work normally.
Okay, thanks!
@mye36m3 Uhā¦ What? Thatās not it at all. Copy this directly:
!addcom !count The follower count for this channel is $(customapi https://api.rtainc.co/twitch/channels/$(channel)/followers/count?format=[1]).
Yeah, sorry I got the wrong one.
Can someone help me with this? I put in the new command but still doing something wrong.
It looks like you missed out the /count
before ?format
. Also, you are using ?format=[2]
, which wonāt return anything.
You can either use ?format=[1]
which will just return the number of followers the channel has, or remove the ?format=[2]
altogether which will return thegrizzlymuffin has x followers
.
So either
https://api.rtainc.co/twitch/channels/thegrizzlymuffin/followers/count?format=[1]
or just
https://api.rtainc.co/twitch/channels/thegrizzlymuffin/followers/count
Can someone help me by explaining what Iām doing wrong or just giving me a direct nightbot !addcom for the !howlong command as I keep getting invariable. Iāve tried multiple APIs from multiple sites with various implementation styles & donāt know if Iām prefacing it wrong or if the APIās bad but Iāve been at this Googling for hours & am tired of failing what I clearly donāt understand so Iām hear asking for you help.
!addcom !howlong $(touser) Has Been Following USERNAME On Twitch Since $(customapi http://api.newtimenow.com/follow-length/?channel=USERNAME&user=$(touser))
!addcom !howlong $(touser) Has Been Following CHANNEL On Twitch Since $(https://api.rtainc.co/twitch/followed-since?channel=CHANNEL&user=USERNAME&units=6)
!addcom !howlong $(touser) Has Been Following CHANNEL On Twitch Since $$(customapi https://apis.rtainc.co/twitchbot/following?channel=CHANNEL&user=$(USER))
!commands add !howlong $(urlfetch https://api.rtainc.co/twitch/channels/$(channel)/followers/$(touser)?format=[1]+has+been+following+[0]+for+[2])
Copy paste this into your chat, no need to change anything.
Thanks. I donāt know if it worked as Iām still getting an invariable. My problem might just be that I canāt check it on m own profile since I canāt follow my own profile or check other profiles with it from my profile. Iāll just have to wait until one of my friends gets on. Which is good for now cause my brain is fried from all of this stuff being way above my level of understanding. I appreciate your help though Stoupedog. Thanks again
No problem, you can actually check other peopleās followage by typing your command followed by the username of someone whoās following you, e.g. !howlong username
https://api.rtainc.co/twitch/channels/CHANNEL/viewers/random?format=I+chooseā¦+%5B0%5D doesnt pick a viewer :S comes back with i chooseā¦
Make sure to replace the capitalized CHANNEL
in the url with the name of the channel you want it to select the viewer from.
Is there a API to check if website is down?
How would it work if the website is down?
In the 8ball command, is it possible to make it where a question mark is required for it to give a choice? Or perhaps a question word such as Is, Will, Can, etc. Just curious as it would make the command more restricted so thereās not much spam with the command
I meant like this.
With an API I could test if Steam is down or up for example via https://steamstat.us/ and bot would answer me like āSteam is down at the momentā for example.
If you donāt get a response or Nightbot cannot reach it then itās safe to say the site is down or broken.