Code Monkey home page Code Monkey logo

ttvchatcontroller's Introduction

ttvChatController

This Python script allows you to control an emulator using commands typed in Twitch TV Chat. You can define which buttons on the emulator's controller correspond to which chat commands using the controller_profiles.yaml file, and you can specify which Twitch users have moderator privileges to control the emulator using the mods.yaml file.

Requirements

  • Python 3.x
  • Twitch API credentials
  • Emulator software

Installation

  1. Clone or download this repository to your local machine.
  2. Install the required Python packages by running pip install -r requirements.txt.
  3. Edit the mods.yaml file to specify the Twitch usernames of the users who have moderator privileges over the emulator.
  4. Edit the controller_profiles.yaml file to define the mapping between chat commands and emulator controller buttons.
  5. Set up your Twitch API credentials in twitch.yaml.
  6. Edit main.py with your Emulator run command. For example (line 16 of main.py): emulator_command = "./PSX/EmuHawk.exe --load-state=./PSX/PSX/State/1.State ./PSX/FinalFantasyTactics.cue"
  7. Edit main.py with your prefered console setting (matching controller_profiles.yaml). For example on line 12: console = 'PSX'

Usage

  1. Run the script by typing python main.py.
  2. In your Twitch chat, type one of the chat commands defined in the controller_profiles.yaml file to control the emulator.

Configuration

mods.yaml

This file contains a list of Twitch usernames who have moderator privileges to control the emulator's load/save states. Add or remove usernames as needed.

twitch.yaml

This file contains your Twitch TV API credentials and channel name that this chat bot will be applied to, it's best to use separate account to your Twitch account for this as it is considered a bot.

controller_profiles.yaml

This file contains chat mappings for actions that will be called upon the emulator. The file currently has bindings for PSX. This is set in main.py on line 12 console = 'PSX'

ttvchatcontroller's People

Contributors

ripcrispy 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.