Code Monkey home page Code Monkey logo

twitch-player's Introduction

twitch-player

twitch-player turns Twitch chat commands into key presses on your computer!

Twitch Python 3

Installation

$ pip install -r requirements.txt

Configuration

You need to add a config.cfg file to the project root. It should look like:

[TWITCH]
; User name of Twitch account. Preferably an alternate from your main Twitch
; account.
Nickname = Nick

; OAuth token acquired from: http://twitchapps.com/tmi
Password = oauth:abcdefghijklmnopqrstuvwxyz0123

; Channel to observe
Channel = channel

[KEYMAP]
; List of viewer commands and the corresponding keys to press.
!left = KEY_LEFT_ARROW
!right = KEY_RIGHT_ARROW
!space = KEY_SPACE
!escape = KEY_ESCAPE

Running

twitch-player must be running on the same machine as the streamed game and the game must have focus.

$ python play.py

Contributing

Have a bug fix or a new feature you'd like to see in twitch-player? Send it our way! Please make sure you create an issue that addresses your fix/feature so we can discuss the contribution.

  1. Fork it!
  2. Create your feature branch: git checkout -b features/bug-fix-missing-keys
  3. Commit your changes: git commit -m 'Adding missing key binds'
  4. Push to the branch: git push origin bug-fix-missing-keys
  5. Submit a pull request.
  6. Create an issue.

License

MIT

See the license document for the full text.

twitch-player's People

Contributors

joshuaskelly avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

twitch-player's Issues

Keys not registering

Summary

When defining keys like !a = KEY_A and !b = KEY_B only the !a option results in a key press event. Other keys like space and enter work fine.

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.