项目作者: erwanvivien

项目描述 :
A bot that converts messages from Twitch chat to actual actions to any window you want
高级语言: C#
项目地址: git://github.com/erwanvivien/twitch_chat_dotnet.git
创建时间: 2020-12-26T11:15:24Z
项目社区:https://github.com/erwanvivien/twitch_chat_dotnet

开源协议:

下载


EMU twitch bot

Introduction

This bot will read chat messages as input.
Will process them and do stuff on the host machine.

The end goal is to run any simple emulator (DS, nes, etc) by broadcasting keys to said emulator
A simple feature includes chaos / order (affects time between messages to let twitch chat take action)

Current

The bot is for now in dev.
~It should not be so hard to develop and should be a lot of fun~.

I’ve reached a wall, I can make this program send keys to OverWatch, World of Warcraft, any recent game, but the DeSmuMe window doesn’t handle Windows Message… Only DirectInput, and I don’t know how to send keys to an inactive window via DirectInput

Next steps:

  • Run without any bugs
  • Easy install & use for personnal projects
  • Setup patreon

How to use

For Streamer

  • Install any DS emulator (DeSmuME was used to test)
  • Install the ROM for your game
  • Create a ‘settings’ file next to executable
  • Run executable

A default ‘settings’ looks like this:

  1. channel: #streamer_live_name # (For Example: #Xiaojiba)
  2. password: oauth:......... # (get this from https://twitchapps.com/tmi/)
  3. window name: desmume # (if you use DeSmuME)

More here

For chat

  • ‘Up’, ‘Down’, ‘Right’ and ‘Left’ can be used in the chat to move character (Can be changed by streamer)
  • ‘A’, ‘B’, ‘X’ and ‘Y’ can be used to make character do some actions
  • ‘W’ is L (behind left) and ‘C’ is R (behind right)

More here

Specifications

If you want to edit it on WSL:
Install SDK from DotNet WSL. I installed the runtime too, might not be needed

If you want to edit it on Windows:
Install SDK from DotNet Windows

Installation

You will need ViGEm to emulate a real virtual joystick and the ViGEm driver is required to do so.

Get them here: ViGEm Driver releases

Dependencies