A Visual Studio Code extension that listens to twitch chat and allows viewers to change the streamers VS Code theme by sending !theme
Install VS Code if you don't already have it.
Install Twitch Themer from the Visual Studio Marketplace
Connect Twitch Themer to Twitch from the Command Palette (Ctrl + Shift + P)
This opens the Twitch Authentication page. Login to your Twitch account
Twitch Chat Commands
Receive a list of available theme names
This will send a list of installed VS Code themes to the requestor via whisper.
Send response to chat of current theme
This will send the currently active theme to Twitch chat.
Send info about this GitHub repo to chat
This will send a message to Twitch chat letting everyone know where to access the source for this extension.
Explain how to use the extensions commands
This will send a message to Twitch chat explaining the available commands.
Set VS Code theme
This command will set the theme of the streamers' VS Code workspace to the theme specified.
Set Random VS Code theme
This command will set the theme of the streamers' VS Code workspace to a theme that is chosen at random. If
Reset VS Code theme
This command will set the theme of the streamers' VS Code workspace back to the theme that was used at the time the extension connected to chat.
Refresh VS Code themes
This command will refresh the list of available themes in the streamers VS Code instance. Will also reset everyones ability to request the list of available themes. Primarily used when themes are added/removed mid-stream.
Install VS Code themes
This command will look for the specified theme on the Visual Studio Marketplace. If found, it will attempt to pull the package.json for the theme from its repository. If that package.json includes themes, the streamer will be prompted to install, not install and/or preview the theme.
Ban/Unban user from changing themes
These commands will either ban or unban a user from changing the theme via Twitch chat.
On the settings UI, you can specify whether the extension should only react to all viewers, only followers or only subscribers.
This setting will toggle whether the extension will automatically connect to Twitch when you launch Visual Studio Code.
This setting will toggle whether the extension will automatically install requested themes or show a prompt.
You can change the trigger commands for the bot. For example, you can change
Connecting / Disconnecting Twitch Chat
If you are signed in to Twitch you'll see your username next to the Twitch Themer paint bucket icon.
Click on the icon to toggle between connecting/disconnecting from Twitch chat.
Twitch Themer: Sign In
Opens the Twitch Authentication page. Login to your Twitch account to access chat.
Twitch Themer: Sign Out
Removes your Twitch authentication and, if connected, leaves Twitch chat.
Attribution & Credits
Thanks goes to these wonderful people (emoji key):