Coder Social home page Coder Social logo

chatplaysclips's Introduction

ChatPlaysClips

A script for Streamlabs OBS Chatbot that allows viewer to play certain clips. Basically its an extended version of OCGineers SLOBS Remote script (see below) using Cooldowns, Costs etc.

The script will load all clips available in a certain directory (.mp4 files right now only) so you can make certain settings clip-specific.

Upcoming Features

  • Read the clip duration from file and set as initial setting when loading directory
  • Reload script automatically after settings have been changed
  • Support more file extensions (mkv, flv, etc.)
  • Check if SLOBSRC + Script is used and use the settings from OCGineers script to guarantee compatibility

Getting Started

  1. Download this repository as a .ZIP archive, or go to Releases and download the .ZIP file from there.
  2. Import the script to your SLOBS Chatbot program.
  3. Change the script general settings.
  4. Click Save Settings, click Reload Scripts and click on the script again
  5. Adjust clip settings and repeat step 4
  6. It should work now

General Settings

General_Settings

Setting Description
SLOBS Scene The scene name that contains the clips to play. If left empty, the active scene will be used.
Clip Directory Path to the directory that contains all clips. Clips will be loaded from this directory.
User Cost Message The message to be played, when a user has insufficient points to play clip.
Global Clip Cooldown The time that needs to pass before the next clip can be played (globally). Use this to prevent spamming.
Global Clip Cooldown Message Any entry will send out a message, if global cooldown is applied. $user , $s . Cost before User Cooldown before Global Cooldown before Clip cooldown!
User Clip Cooldown The time that needs to pass before a user can play the next clip (globally).
User Clip Cooldown Message Any entry will send out a message, if user cooldown is applied. $user , $s . Cost before User Cooldown before Global Cooldown before Clip cooldown!
Specific / Clip Cooldown Message Any entry will send out a message, if clip cooldown is applied. $user , $c , $s . Cost before User Cooldown before Global Cooldown before Clip cooldown!

DON'T FORGET TO SAVE SETTINGS AND RELOAD SCRIPT / VIEW

Clip Settings

clip_settings

Setting Description
Active Enables / Disables the clip.
SLOBS Source Name Sourcename in Streamlabs OBS for the clip.
Duration The time that displays / shows the source in seconds.
Currency Cost Currency cost to play the Clip. 0 disables cost check.
Cooldown Cooldown in seconds until this clip can be played again in seconds.
Command Command to trigger the play of the clip.

DON'T FORGET TO SAVE SETTINGS AND RELOAD SCRIPT / VIEW

Contributing

If you want to contribute, open a Pull Request or write an issue.

Credits & Acknowledgments

  • OCGineer - For providing the SLOBS Remote Control. Kudos!
  • Bare7a - For giving inspiration and helping with the first steps

chatplaysclips's People

Contributors

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