Quote command based on the current game?

I need a command that pulls a quote from a pastebin depending on the game I am playing.

For example if the viewer uses !thecommand and I am playing game1, the message should be the specific game1 quote. If I am playing game2 the quote should be the specific game2 quote, and so on. Otherwise, it will be a default quote. I only need one quote for each game.
I’m also not sure how to format the pastebin to allow that.

Hey @cecilialaruine!

You can use the Quote System API for that.
To have quotes related to the current game, simply modify the !addquote and !quote commands slightly, like this:

$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=$(querystring)%20$(twitch $(channel) "{{game}}"))


$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(querystring)%20%5B$(twitch $(channel) "{{game}}")%5D)

It works perfectly thank you so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.