A Unity tool that will allow you to easily implement Twitch chat commands into your game!
Watch a short guide to understand how to implement the tool into your project!
A Unity tool that will allow you to easily implement Twitch chat commands into your game!
License: MIT License
Hello,
I suspect I'm using the library incorrectly because I keep getting an error with single-word commands that don't need any arguments. It seems the code consistently expects parameters to have at least one index, but I've noticed that parameters can, in fact, contain no indexes at all.
IndexOutOfRangeException: Index was outside the bounds of the array.
TwitchIntegration.TwitchCommandManager.CallCommand (System.String commandName, TwitchIntegration.TwitchUser user, System.Collections.Generic.IReadOnlyList`1[T] args) (at Assets/TwitchChatInteractions/Scripts/Runtime/Twitch/TwitchCommandManager.cs:264)
TwitchIntegration.TwitchCommandManager.OnMessageReceived (System.String message) (at Assets/TwitchChatInteractions/Scripts/Runtime/Twitch/TwitchCommandManager.cs:243)
TwitchIntegration.TwitchCommandManager.ReadChat () (at Assets/TwitchChatInteractions/Scripts/Runtime/Twitch/TwitchCommandManager.cs:174)
TwitchIntegration.TwitchCommandManager.Update () (at Assets/TwitchChatInteractions/Scripts/Runtime/Twitch/TwitchCommandManager.cs:336)
user.Id gotten from TwitchManager.OnTwitchCommandReceived always returns 0 even from 2 diffrent users other variables like displayname do work
Game Twitch Client ID dosent save alwawys is: 11dqybwzddmtq5e7kg57t663gd19uc after reopening unity
After loading the authentication scene and attempting to authenticate, the twitch authentication window opens, and after authorizing it, It fails, saying Bad Request (Invalid host). Further attempts take me directly to the Bad Request (Invalid host) page.
Assets\Scenes\Scripts\Menu.cs(18,13): error CS0103: The name 'TwitchManager' does not exist in the current context
Hello,
I want to express my gratitude for this library; it has proven to be incredibly helpful.
I'd like to highlight a minor issue that users might encounter when utilizing this library on a Mac, or share a helpful tip.
By default, attempting to access http://localhost/ or http://127.0.0.1/ might result in an "access denied" error when using the Auth code on a Mac. The workaround is straightforward—simply append a port to the end of the URL:
However, when implementing this change, please remember to update the Redirect URL in the settings and within the Twitch API Dashboard:
This adjustment should resolve the issue and allow for smooth functionality on both Mac and other systems.
Thank you again,
Eli
the version number in settings in 1.2 is still 1.0
Hello again,
I alternate between using Windows and Mac for my Unity projects. There's an issue specifically on Mac regarding the function Application.OpenURL. When this function is used on a Mac, the URL passed to it cannot contain any spaces.
The solution to this issue involves replacing spaces with "%20" in the URL. "%20" serves as an encoded representation for a space in a URL. I've tested to ensure that using "%20" doesn't affect authentication in a Windows environment. It appears to function correctly on both Mac and Windows environments.
Thank you for your time,
Eli
Im kinda new to this is there a way to get the user that called a command right in the command function?
Hi @danqzq thanks for sharing your package.
The v1.1 release doesn't contain the Ping/Pong fix.
I downloaded the latest release package but my chat was dying after a few minutes.
I applied the fix manually but it's worth releasing this fix for future users.
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.