Skip to content

Chat commands for the game you're playing

A flow can ask a game's own data for an answer and post it in chat. Give Old School RuneScape a !ge price check and World of Warcraft a !rio score, and let each command answer only while you're playing its game.

Read the guide

New channels can’t join yet. Already using Bloopbot? Sign in.

Flows · !ge
Pebble, the Bloopbot mascot

Old School RuneScape: !ge

A viewer types !ge twisted bow and the bot answers with the item's Grand Exchange price, from Weird Gloop's price API at api.weirdgloop.org, which needs no key. The flow is six steps:

StepSet to
Chat commandge
Web requestGET https://api.weirdgloop.org/exchange/history/osrs/latest?name=$(query)
Read JSONRead $(from.web.text), pick item ← *
For each$(from.json.item)
Check a value$(item.price) is not empty
Chat message$(item.key): $(item.price) gp

$(query) is everything the viewer typed after the command, and the API matches the item's name whatever its capitals, so !ge twisted bow answers Twisted bow: 1356626084 gp. A name the API doesn't know gets no answer, because Check a value stops it. Several names separated by |, such as !ge abyssal whip|dragon claws, get one line each.

The !ge flow on the canvas in two rows: Chat command !ge, a Web request to api.weirdgloop.org with the viewer's words as the item name, Read JSON picking every entry as item, For each going through them, Check a value letting only entries with a price through, and a Chat message saying the item's name and price in gp.
The !ge flow: Chat command, Web request, Read JSON, For each, Check a value and Chat message. Click to enlarge.

World of Warcraft: !rio

!rio posts your character's Mythic+ score from Raider.IO, and only while your stream's category is World of Warcraft:

StepSet to
Chat commandrio
Check a value$(data.stream.category) equals World of Warcraft
Web requestGET https://raider.io/api/v1/characters/profile?region=eu&realm=your-realm&name=YourCharacter&fields=mythic_plus_scores_by_season:current
Read JSONRead $(from.web.text), pick score ← mythic_plus_scores_by_season.0.scores.all
Chat messageYourCharacter: $(from.json.score) Mythic+ score on Raider.IO

Put your own region, realm and character name in the address. The score comes out with one decimal, as Raider.IO gives it.

Only while you play it

$(data.stream.category) is the category your stream is set to on Twitch, kept up to date as you change it. A Check a value step on it keeps a command quiet in any other game, so !rio says nothing while you're in RuneScape. Add the same step to !ge, set to Old School RuneScape, and each game's commands only answer in their own game.

What you need

Test fire doesn't reach the game's website: the Run log shows the address it would call. Type the command in your own chat to see the real answer.

Give your game its own commands.

Sign in with Twitch, allow web requests on the Flows page and build !ge or !rio from the steps below.

Read the guide

New channels can’t join yet. Already using Bloopbot? Sign in.

Pebble is ready to help