Giter Site home page Giter Site logo

dmadison / obs-chatspam Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 9.0 36 KB

Python script for OBS Studio that posts messages in Twitch chat

Home Page: http://www.partsnotincluded.com

License: GNU General Public License v3.0

Python 100.00%
obs obs-studio obs-websocket script python streaming twitch hotkeys

obs-chatspam's Introduction

OBS Chat Spam Script

This is a Python script for OBS Studio that allows you to post messages in Twitch chat using OBS hotkeys. This can be used for posting general chat messages, spamming emotes, or triggering chat bot commands.

More information is available on my website.

Installation

The script only works with OBS Studio versions 21.x and later. If you have an older version you will need to update.

As of this writing OBS seems to have issues with the newest versions of Python (3.7+). This script was developed and tested using Python 3.6.4.

You need Python 3 installed on your PC. The bit version of your Python installation must match your OBS installation - use "x86-64" for 64 bit OBS Studio and "x86" for 32 bit OBS Studio. In the menu in OBS Studio, go to Tools and then Scripts. Then in the "Python Settings" tab, set the path to point to the Python installation folder.

Add the chat spam script to the "Scripts" window using the '+' icon on the bottom left. Select the script in the "Loaded Scripts" panel, and if everything is set up correctly you should see the script properties show up on the right.

Setup

Fill out the configuration settings in the script properties:

  • Channel: The Twitch channel to post messages in.
  • User: The username that messages will be posted under.
  • Oauth: Oauth key used for authentication. If you don't have an oauth key, you can easily get one using this site. Do not share your oauth key with anyone.

Add messages to the message list for things you want to say in chat. Each message gets a dedicated hotkey that can be configured in the OBS hotkey settings.

You can test the script by using the "Test Authentication" and "Test Message #1" buttons. These will raise an exception if there is any sort of issue.

Disclaimer

This is an unofficial 3rd party script for OBS. The author has no affiliation or endorsement as a developer from either Twitch or OBS.

License

This script is licensed under the terms of the GNU General Public License v3.0.

obs-chatspam's People

Contributors

dmadison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obs-chatspam's Issues

Connexion problem

[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 207, in
[OBS_ChatSpam.py] self.callback = lambda pressed: self.key_passthrough(pressed) # Small hack to get around the callback signature reqs.
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 226, in key_passthrough
[OBS_ChatSpam.py] self.send()
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 229, in send
[OBS_ChatSpam.py] self.irc.chat(self.text, suppress_warnings)
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 104, in chat
[OBS_ChatSpam.py] if not self.check_rates() or not self.connect(suppress_warnings):
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 45, in connect
[OBS_ChatSpam.py] connection_result = self.__connect()
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 77, in __connect
[OBS_ChatSpam.py] auth_response = self.read()
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 119, in read
[OBS_ChatSpam.py] response = self.__read_socket()
[OBS_ChatSpam.py] File "Y:/Downloads/Streaming/OBS Studio/OBS-ChatSpam-1.0.1\OBS_ChatSpam.py", line 125, in __read_socket
[OBS_ChatSpam.py] return self.__sock.recv(1024).decode("utf-8")
[OBS_ChatSpam.py] ConnectionResetError: [WinError 10054] Une connexion existante a dû être fermée par l’hôte distant

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.