techygrrrl
techygrrrl's blog

techygrrrl's blog

Chatbot to output Tetris Effect: Connected Skill Ranking (SR) on Twitch

Chatbot to output Tetris Effect: Connected Skill Ranking (SR) on Twitch

techygrrrl's photo
techygrrrl
·Feb 8, 2022·

1 min read

Table of contents

  • How it Works
  • Source Code

Thanks to the StreamElements chat bot and Quarter Zone, I built a chat bot that outputs my Tetris Effect: Connected skill ranking (SR) to chat.

cmd-sr-demo.gif

How it Works

This function uses Cloudflare Workers which has a generous free plan and the StreamElements chat bot, which allows you to implement a custom API, which is essentially a simple get request. The API must return a string, which is then output by the bot.

The function fetches a profile from Quarter Zone and parses the numerical values, and formats a message with the values.

Source Code

You can learn how to implement your own and get the code here: github.com/techygrrrl/function-tec-sr

 
Share this