top of page

How to Create a Simple "Message of the Day" Twitch Extension

So you want to get started building Twitch extensions, but don't want to start entirely from scratch, Muxy can help. Using Muxy's platform, you can quickly create a simple "Message of the Day" Twitch extension. We've got the backend and some basic components covered for you. Follow these step-by-step directions to create yours. We'll show you how to add source for a Hello World extension to your basic installation.

To get started building simple extensions, we will modify the starter project to create a basic Panel Extension that lets a broadcaster set a “Message of the Day” for their viewers, and another extension for viewers that shows them the message.

This tutorial uses two extensions that are part of the MEDKit Hello World Example. 1) The Broadcast Live Dashboard extension is defined by 'src/live.htm', and 2) the extension for viewers is defined by 'src/viewer.htm'.

  1. Open the source file for the Broadcast Live Dashboard extension (or create a new Panel Extension).

  2. Add a text input box and button to this extension so that a broadcaster will be able to enter some message text, and press the button to publish the message to all current viewers. See the commented Broadcaster Live Dashboard code here

  3. Open the source file for the Viewer extension (or create a new Panel Extension).

  4. Use the example code to modify another extension that viewers will see. This code subscribes to the broadcast stream and displays messages when they arrive. New viewers who visit the channel will see the most recent message the broadcaster sent. See the commented code for the Viewer Panel Extension here And that's it! If you tried out this tutorial, let us know how it went and show us your results!

323 views0 comments


bottom of page