Code Monkey home page Code Monkey logo

twitch-plays-arena's Introduction

Twitch Plays Arena

Welcome to Twitch Plays Arena, the exciting user-vote-based Magic Arena experience.

This software will run a twitch bot on your computer that will allow strangers on the internet help you lose games of Magic: The Gathering, Arena.

You will want to first set up a twitch stream from which you will broadcast games of Magic: Arena. Users on your channel will click positions on the screen (using a provided twitch extension) to vote on the next game action.

Getting Started

Set up your environment

You must use a Windows machine capable of running Magic: Arena. Install python, and setup a virtual environment:

virtualenv -p python3 venv
source venv/Scripts/activate
pip install -r requirements.txt

Set up the twitch bot

The arena_bot sends messages to your twitch stream chat. To set it up, you will need to configure it with an oauth token.

Generate an oauth token here:

https://twitchapps.com/tmi/

cp arena_bot/tpa-sample.ini arena_bot/tpa.ini
vim arena_bot/tpa.ini # Add your oath token

Twitch operates at:

irc://irc.chat.twitch.tv:6697

Bot Docs

guide: https://dev.twitch.tv/docs/irc/guide/#join

reference: https://dev.twitch.tv/docs/irc

Running Twitch-Plays-Arena

The program consists of three binaries: (1) a twitch extension for gathering user click votes and sends them to (2) a twitch extension backend that aggregates user votes and sends them to (3) an MTG arena_bot that tallies votes and controls screen clicks.

Running the Extension

TODO

Running the Backend

TODO

Running the Arena Bot

python arena_bot/mouse_web_controller.py --help

Or, see the configuration in .vscode/launch.json and modify as needed.

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.