OpenTwitch
🇧🇷
O que é a OpenTwitch?
A OpenTwitch é uma aplicação NodeJS desenvolvida ao vivo na twitch com o objetivo principal de fazer uma solução colaborativa para streamers da Twitch. Saiba mais sobre toda a estrutura pensada/desenvolvida na nossa wiki
Dependências
Instalação
Passo a passo aqui
Após instalado, eu recomendo fortemente que você adicione a pasta src/jsons
no seu arquivo .gitignore
pois estes arquivos contém informações sensíveis.
Recursos
Integração com o chat da Twitch
Com esse recurso, podemos integrar o bate-papo do seu canal da Twitch com nosso aplicativo para ler comandos e resgates de recompensas na loja da stream. A biblioteca escolhida foi a Twurple, que foi confusa de entender à primeira vista, mas funciona bem.
Integração Spotify
Esta é a cereja do bolo. Com esse recurso, seus espectadores podem adicionar músicas ao dispositivo Spotify fornecido em que você está ouvindo músicas. Os espectadores também podem votar para manter ou pular a música atual. Basicamente, você está passando o controle da playlist de músicas da transmissão ao vivo para o seu público. Fantástico né não?
Testes via CLI
Você pode testar sua integração diretamente no seu console, simplesmente rodando o comando test run
+ modulo que gostaria de testar com seus devidos parâmetros. Pra isso é necessário usar algum package manager do NodeJs. Eu particularmente uso o Yarn, então o comando será yarn test run song-list 1
, para listar as músicas na playlist atual no ponto de vista do usuário de ID 1. Veja os testes possíveis neste link
Problemas conhecidos
- Há muita refatoração a ser feita ainda. Fique a vontade em sugerir melhorias de código e enviar uma nova pull request caso julgue que sua alteração beneficiará o desempenho do código fonte.
- O código tem os retornos apenas em português. Você pode criar um helper para tradução, lendo a informação do idioma escolhido do arquivo
.env
.
Aproveite!
💜
by Jhonatan and oNinjaDev Community
Made with
🇺🇸
What is OpenTwitch?
It is an NodeJS application developed live at twitch with the main purpose of make a collaborative sollution for Twitch streamers. Learn more about the whole structure thought/developed at our wiki
Dependencies
Installation
Step by step here
After install, I strongly recommend you to add the src/jsons
folder to your .gitignore
because most of its files are used to store sensitive information.
Resources
Twitch Chat Integration
With this feature, we are able to integrate your Twitch channel chat with our application in order to read commands and reward redemptions at your Twitch's stream store. The chosen library was Twurple, which was messy to understand at the first glance but it works fine.
Spotify Integration
This is the cake's cherry. With this feature, your viewers can add songs to the provided Spotify device you're listening songs at. Viewers can also vote for keep or skip the current playing song. Basically you are passing the livestream songs playlist control to your audience. Fantastic innit?
Tests via CLI
You can test your integration directly in your console, simply by running the command test run
+ module that you would like to test with its proper parameters. For that it is necessary to use some package manager of NodeJs. I particularly use Yarn, so the command will be yarn test run song-list 1
, to list the songs in the current playlist from user ID 1 point of view. See the possible tests at this link
Known Issues
- There's a lot of refactoring to be made. Feel free to sugest any code improvements and to send a new pull request in case you see your modifications can benefit the source code performance.
- The code has returns only in Portuguese. You can create a translation helper by reading the chosen language information from the
.env
file.
Open source licensing info
Enjoy!