irlmap.live Log in with Twitch

Chat commands in Nightbot, StreamElements and Fossabot

Every command is a link that replies with a line of text. Here’s how to hook them up.

First get your chat link: log in and go to Settings → Chat commands. It looks like https://irlmap.live/c/ch_xxxxxxxx. You add the command name at the end, like /location. In the examples below, swap YOUR_LINK for yours.

Everything below already uses your own chat link, so you can copy it straight into your bot. Each command is your link plus the command name, like /location.

Nightbot

Paste these into your chat as the streamer or a mod, one at a time. Only add the ones you want.

!addcom !location $(urlfetch YOUR_LINK/location)
!addcom !speed $(urlfetch YOUR_LINK/speed)
!addcom !distance $(urlfetch YOUR_LINK/distance)
!addcom !maxspeed $(urlfetch YOUR_LINK/maxspeed)
!addcom !eta $(urlfetch YOUR_LINK/eta)
!addcom !destination $(urlfetch YOUR_LINK/destination)
!addcom !weather $(urlfetch YOUR_LINK/weather)
!addcom !time $(urlfetch YOUR_LINK/time)

Or add them in the Nightbot dashboard under Commands → Custom, with $(urlfetch YOUR_LINK/location) as the message.

StreamElements

Same idea, one at a time in chat:

!command add !location ${customapi.YOUR_LINK/location}
!command add !speed ${customapi.YOUR_LINK/speed}
!command add !distance ${customapi.YOUR_LINK/distance}
!command add !maxspeed ${customapi.YOUR_LINK/maxspeed}
!command add !eta ${customapi.YOUR_LINK/eta}
!command add !destination ${customapi.YOUR_LINK/destination}
!command add !weather ${customapi.YOUR_LINK/weather}
!command add !time ${customapi.YOUR_LINK/time}

Fossabot

Create a command in the Fossabot dashboard for each one you want, with the matching response:

$(customapi YOUR_LINK/location)
$(customapi YOUR_LINK/speed)
$(customapi YOUR_LINK/distance)
$(customapi YOUR_LINK/maxspeed)
$(customapi YOUR_LINK/eta)
$(customapi YOUR_LINK/destination)
$(customapi YOUR_LINK/weather)
$(customapi YOUR_LINK/time)

Your own bot

Do a GET on the link and post whatever comes back. It’s plain text, one line, short enough for chat.

All the commands

Add to the linkReplies with
/locationNeighbourhood and city, or “hidden”
/speedCurrent speed
/distanceDistance this stream
/maxspeedTop speed this stream
/etaTime and distance to your destination
/destinationWhere you’re heading
/weatherLocal weather
/timeLocal time

Add ?u=imperial at the end for mph, miles and °F, for example YOUR_LINK/speed?u=imperial.

Keep the link to yourself

Anyone with the link gets the same answers chat gets, so it isn’t secret data, but there’s no reason to post it. If it ends up somewhere it shouldn’t, rotate the chat key in Settings and update your commands.

Try it on your next stream

Free, and it takes about five minutes to set up.

Log in with Twitch See the live map