Giter Site home page Giter Site logo

twitchplay's Introduction

TwitchPlay

Unreal Engine 4 Plugin for Twitch Chat integration

Unreal's Marketplace Page: https://www.unrealengine.com/marketplace/twitchplay-plugin

Preview: https://www.youtube.com/watch?v=QCcoUbKkOjw

Description

Two components available for use: TwitchIRCComponent and TwitchPlayComponent.

TwitchIRCComponent: enables communication back and forth with a Twitch channel chat. You can read each message (with relative username of the sender) by receiving a simple event (OnMessageReceived) or send your own messages to the chat (SendIRCMessage with SendTo enabled and chosen channel).

TwitchPlayComponent: in addition to what the TwitchIRCComponent does, this is a wonderful utility and time saver for when you want to implement user generated commands directly inside the game!

No need to do any parsing or checks on you side. Just Register a text command on the component and associate your own event that should fire whenever that user sends a chat message in the correct form (which is [DELIMITER]command[DELIMITER][OPTIONS]options[OPTIONS]. DELIMITER is '!' by default, but you can choose what you want. You can specify options for the command by using another delimiter, '#' by default, separated by ',').

You can also unregister commands that you don't need anymore at runtime. The only limitation is that a single object/function can be registered for a single command (if a second object tries to register it will overwrite the previous one's registration) at the moment. This might change in future API versions.

Technical Details

The implementation uses FSockets and custom delegates to enable its functionalities.

Only one object can subscribe to a custom command at a time. I might change that in later API versions.

Documentation: https://goo.gl/kjg3s0

Intended Platform: Windows (should work on other platforms too)

twitchplay's People

Contributors

demortes avatar fabriciomsantos avatar rfsheffer avatar thedig3 avatar

Watchers

 avatar

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.