NightDev Community Forums

Useful Custom APIs


Yes, all the api’s appear to be. Luckily 8-ball can be done with nightbot’s eval. Just use a command like this:

$(eval var sayings = ['Signs point to yes.', 'Yes.', 'Reply hazy, try again.', 'My sources say no.', 'You may rely on it.', 'Concentrate and ask again.', 'Outlook not so good.', 'It is decidedly so.', 'Better not tell you now.', 'Very doubtful.', 'Yes - definitely.', 'It is certain.', 'Cannot predict now.', 'Most likely.', 'Ask again later.', 'My reply is no.', 'Outlook good.', "Don't count on it."]; sayings[Math.floor(Math.random() * sayings.length)];)

I believe it has to be put in via the nightbot dashboard because the size of the message is too long. So it will look something like this:

!8ball api for Nightbot
Nightbot command

Considering the lack of general update with the api’s i doubt he is checking the forum. Instead it is better to ask for what you need because a lot of other people have replaced these api’s because they have gone down in the past. So, what exactly were you using/needing?


Hi! is there a way we can talk privately? i have specific needs for my stream. im willing to pay for this :slight_smile:


Thanks for that! 8-Ball was the last one I used. The others are switched to alternatives.


in case this server is not coming back, anyone got alternative server/command to check how long user/channel exist on twitch, to write a random viewername in chat and to make a random choice from given parameters?


I dont really want to selfadvertise in here, but since the OP has not been really active, I’ll share mine:
Random viewer: Random Active User via variables
Random choice, scroll up a bit: Useful Custom APIs
I could make something for the user creation date later this week.


that would be cool. i know with bttv you can click the name in chat and see creation date. but as bot command with configurable output (f.e. in years, months, days, hours, seconds) its way better. you can check offline people and even via discord


I’ve noticed the responses of nightbot when using these API’s, they currently don’t work due to a network problem -
From what I’ve found this is what’s going on - -


i cannot get this follower count api to work[0]+has+[1]+followers
Returns the channel’s follower count.


The host is down. No updates from the owner yet…


sounds like global issue, Alarm! host is down, any ideas how can we replace those commands on new host (if there is any)


There are generally already replacements out there. Either using new nightbot functionality or other people’s customapi’s. What exactly were you needing?


anyone have a alternative code for Returns a random choice from the parameter. Comma-separated?


Yes, scroll up a bit. Useful Custom APIs


ya i have seen before, but can choose the choice of parameter of the user? Like-
user: !choose one, two, three, 1, 2, 3
return: two
user: !choose one, two, three, 1, 2, 3
return: 3

or anyone know how to change it code? Tnx


Try something like this, make sure your input is comma seperated:
$(eval var a="$(query)".split(",");(a.length>1&&a[0]!==""?a[Math.floor(Math.random()*a.length)]:"¯\\_(ツ)_/¯");)


Kinda random but your one post about !howlong formats, i was wondering if you could add one that had year and months. Like &format=yearmonth (X has been following Y for 2 years, 9 months).

Thank you!


i`ll need to get an api for how long person has been following channel… or how long this person was subscribed, is it possible to make somehow


I found an alternate API site:


I am currently trying to add a command that tells the user that typed in the command since when their account was made I am using an API from the original post[0]'s+account+has+existed+for+[1])

and to make the command I put

!addcom !created $(touser) created their account on $(customapi[0]'s+account+has+existed+for+[1])

Im not sure what to put for CHANNEL since I am attempting to direct it to whomever typed the !created command so I replaced it with (touser) and $(touser) but it keeps saying “USER has created their account on Error Connecting To Remote Server”

Is there a newer version of the API I’m trying to use, typo, or I just don’t know what I’m doing

Any help would be appreciated