Coder Social home page Coder Social logo

danqzq / unity-twitch-chat-interactions Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 5.0 1.37 MB

A Unity tool that will allow you to easily implement Twitch chat commands into your game!

License: MIT License

C# 100.00%
csharp twitch twitch-chat twitch-chat-client unity unity-plugin unity-tool

unity-twitch-chat-interactions's Introduction

Unity Twitch Chat Interactions

Downloads Latest Version

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! YouTube Tutorial

Games using Unity Twitch Chat Interactions

unity-twitch-chat-interactions's People

Contributors

danqzq avatar elijarmstrong avatar hoier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

unity-twitch-chat-interactions's Issues

Code is expecting an non empty array. (IndexOutOfRangeException)

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.

image

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 always returns 0

user.Id gotten from TwitchManager.OnTwitchCommandReceived always returns 0 even from 2 diffrent users other variables like displayname do work

Authentication fails on Firefox: Bad Request (Invalid host)

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.

Mac Support issue: Default Port

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:

image

However, when implementing this change, please remember to update the Redirect URL in the settings and within the Twitch API Dashboard:

image
image

This adjustment should resolve the issue and allow for smooth functionality on both Mac and other systems.

Thank you again,
Eli

Mac Support issue: Application.OpenURL

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.

image

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.

image

Thank you for your time,
Eli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.