{"repo":"instafluff/ComfyJS","free":true,"listed":false,"github":"https://github.com/instafluff/ComfyJS","clone":"git clone https://github.com/instafluff/ComfyJS.git","description":"Comfiest Twitch Chat Library for JavaScript | NodeJS + Browser Support","language":"JavaScript","stars":434,"topics":["hacktob","twitch","javascript","chat","chatbot","nodejs","browser","library","typescript","livestream"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Comfy.JS We built this Comfy Twitch Chat Module live on Twitch for Coding Cafe! Special Thanks: Comfy.JS is possible thanks to tmi.js maintained by @AlcaDesign Comfy.JS lets you integrate with Twitch chat for your Twitch channel SUPER EASILY in just a few lines of code. Here's a quick 3-min video on how to use it: (Click image to open video) Instafluff ## Like these projects? The best way to support my open-source projects is by becoming a Comfy Sponsor on GitHub! https://github.com/sponsors/instafluff Come and hang out with us at the Comfiest Corner on Twitch! https://twitch.tv/instafluff Instructions ## Node 1. Install comfy.js 2. Respond to !commands your channel Browser 1. Download and add comfy.js from the dist folder or include from the JSDelivr CDN: OR 2. Respond to !commands your channel Flags ## Currently, the flags possible in onCommand() and onChat() are: - broadcaster - mod - founder - subscriber - vip - highlighted - customReward Extra Parameter ## Currently, the extra parameter for the onCommand() contains the following fields: - id (the message message) - channel - roomId - messageType - messageEmotes - isEmoteOnly - userId - username - displayName - userColor - userBadges - flags - timestamp - customRewardId (only works with custom channel rewards with required-text) If the message is a command, the extra parameter will contain an additional field: - sinceLastCommand which contains the information on the time periods in ms since the last time any user, or the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/instafluff","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/instafluff/ComfyJS/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}