Skip to content

Bot programado em NodeJS para gestão de comandos no chat da Twitch

License

Notifications You must be signed in to change notification settings

lanjoni/sosoBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sosoBot, o bot de comandos da Twitch!

Bot para uso pessoal na minha Twitch pessoal utilizando JavaScript!

O bot possui como finalidade o funcionamento (baseado em NodeJS) conectado com a Twitch. Para que todo o processo seja possível, se faz necessário configurar as constantes que regulam os seus dados (é preciso que você crie uma conta especialmente para o bot, e gere um token de funcionamento no site TwitchApps.

Após realizar a conexão utilizando seus dados (nome do canal, nome da conta criada para o bot e token de acesso gerado anteriormente), basta que alteremos os nossos amigáveis if's e else's, adicionando assim nossos comandos!

Para executar o bot digite "node sosoheart" ou "node sosoheart.js" (ou o nome salvo para seu bot), e pronto! Seu bot já está funcionando!

Caso deseje hospedar em algum site, sinta-se confortável para fazer! Assim você não precisa ficar iniciando o bot no seu PC sempre que desejar, não é?

Detalhe: as configurações de portas já são definidas automaticamente ao informar o canal da Twitch, assim o bot sabe sempre onde entrar para responder o chat e verificar as mensagens! Fica tranquilo que os "console.log" não irão aparecer no chat da Twitch, afinal, eles são apenas para fins de teste (assim a gente consegue saber se o comando foi executado ou não, se foi reconhecido ou não, entre outras finalidades!)

Bom proveito! 😉


Bot for personal use on my Twitch using JavaScript!

The bot is intended to work (based on NodeJS) connected with Twitch. For the entire process to be possible, it is necessary to configure the constants that regulate your data (you must create an account especially for the bot, and generate a working token on the website TwitchApps.

After making the connection using your data (channel name, account name created for the bot and previously generated access token), we just need to change our friendly if's and else's, thus adding our commands!

To run the bot type "node sosoheart" or "node sosoheart.js" (or the saved name for your bot), and that's it! Your bot is now working!

If you want to host on any site, feel free to do so! So you don't have to start the bot on your PC whenever you want, do you?

Detail: the port settings are already defined automatically when informing the Twitch channel, so the bot always knows where to enter to answer the chat and check the messages! Rest assured that the "console.log" will not appear in the Twitch chat, after all, they are only for testing purposes (so we can know if the command was executed or not, if it was recognized or not, among other purposes!)

Enjoy it! 😉


GitHub followersTwitch StatusTwitter Follow