Coder Social home page Coder Social logo

twitch-irc's Introduction

Twitch-irc

An extensible IRC relay application for twitch.tv chat rooms

Motivation

As streaming becomes more and more popular, the need for community centered applications increases.
The world's leading video platform and community for gamers delivers over 10 billion messages a day with its chat service (source).
A lot of existing tools revolve around this IRC-based service and this is why we should ease the process of making such tools.

This project aims to provide a robust base to work with twitch's IRC chat rooms.

Usage

With docker 🐳:

docker run --rm -it \
    globidocker/twitch-irc channel script

Examples

3 scripts are provided as a proof of extensibility

Echo
twitch-irc day9tv twitch-irc-echo

This simple script will just display IRC messages on the standard output

Websocket
twitch-irc lirik twitch-irc-websocket [port]

This script will relay private messages with a websocket server listening on the port port You can subscribe to specific channels using the connection request's path ws://host:port/channel

This is the script used by twitch-cast and is available at ws://datcoloc.com/chat/channel

X11
twitch-irc your-channel twitch-irc-x11

Inspired by the social experiment Twitch plays Pokémon

This script makes use of the X11 library to forward specific channel messages as keycodes to a X11 window.
The chat can send game inputs!

Building

with Haskell's stack:

stack setup
stack build --copy-bins

twitch-irc's People

Contributors

globidev avatar rvion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rvion smt923

twitch-irc's Issues

Add support for eventchats

Some channels on Twitch use eventchat which means that message delivery is done by a dedicated websocket server.
This is the case for very crowded channels like twitch.tv/riotgames or esports related channels in general

Adding support for those channels would be nice!

automate C compiling

Library foobar
-- ...
-- The C source files to compile, in that order
C-sources: cbits/foobar.c, cbits/foobaz.c
-- The location of the header files
Include-dirs: include
-- The header files to be included
Includes: foobar.h, foobaz.h
-- Header files to install
Install-includes: foobar.h, foobaz.h

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.