rhomita / twitch-chat-connect Goto Github PK
View Code? Open in Web Editor NEWA super basic client to connect to your Twitch chat
License: MIT License
A super basic client to connect to your Twitch chat
License: MIT License
If I call TwitchChatClient.Init() and pass in a TwitchConnectConfig() I am able to connect but I never receive any chat commands. I set a breakpoint inside ReadChatLine() and _twitchClient.Available is always 0. _reader also seems to never receive any data.
However, if I call Init() and use a TwitchConnectData ScriptableObject created in the Editor, then chat commands are received normally.
I will continue debugging to see if I can figure out why this is happening.
Also while I'm here: I set CloseTcpClient() to public because there is no other way to shut down without destroying the TwitchChatClient GameObject. I guess everyone can do this themselves but I wonder why you made it private? Inside this method I also added _writer/_reader.Close() and set them to null, as well as resetting _isAuthenticated to false because otherwise it's never reset back to false after connecting once.
I installed the code into my unity project and was able to set it up normally and it works normally with normal messages and
However, if an user were to input ":" into chat, it does not trigger any of the events: onChatMessageReceived, onChatCommandReceived, onChatRewardReceived
Weird behaviour happens when emotes like :D and :| is used. For example, viewer types ":) :|" in chat, it only shows the "|" in the chatMessage.Message parameter
so longer sentences like "Welcome to the stream :)" the chatMessage.Message only contains ")"
Hi, I have recently found a bug. Sometimes when you try to log in, the library gets stuck loading for a long time without logging in and it doesn't throw any errors.
The only way I know to replicate it is to log in several times until it gets stuck.
If I have to provide any more information or debug, please tell me.
Hello I have integrated your package into my unity 2019.4.10f1 project, upon setting up my authentication and running the example chat scene, messages show up fine, but rewards don't show up at all - I've tried with an external account too thinking maybe it won't show self account posted rewards but neither work. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.