Coder Social home page Coder Social logo

lukynkacze / intellijtwitchchannelpoints Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 17 KB

IntelliJ plugin that allows you to link your twitch channel point rewards to actions like changing theme, changing font, sending fake errors and etc

License: MIT License

Kotlin 100.00%

intellijtwitchchannelpoints's Introduction

wakatime

IntelliJ Twitch Channel Points Integration

IntelliJ plugin that allows you to link your twitch channel point rewards to actions like changing theme, changing font, sending fake errors and etc

Example:

example_gif


Installation

You can download the plugin from the JetBrains Marketplace (CURRENTLY UNDER REVIEW)


Usage

Make a JSON config in the following style:

{
    "twitchClientId": "<your twitch client id>",
    "twitchAPIToken": "<your twitch api token>",
    "twitchChannelId": "<your twitch channel id>",
    "rewards": [
        {
            "name": "Randomize IDE theme",
            "type": "SET_THEME",
            "value": "_random"
        },
        {
            "name": "Switch IDE theme to Light Theme",
            "type": "SET_THEME",
            "value": "IntelliJ Light"
        },
        {
            "name": "Randomize IDE font",
            "type": "SET_FONT",
            "value": "_random"
        },
        {
            "name": "Send Exception",
            "type": "SHOW_EXCEPTION",
            "value": "_prompt"
        }
    ]
}

The field name in reward object needs to be the same as name of the reward on twitch

For the type, you can choose from the following:

  • SET_THEME
  • SET_FONT
  • SHOW_EXCEPTION

When using SET_THEME you need to pass the name of the theme in the value field, otherwise it will default to IntelliJ Dark

When using SET_FONT you need to pass the name of the font in the value field, otherwise it will default to Jetbrains Mono

When using SHOW_EXCEPTION you need to pass the text of the "exception" in the value field, otherwise it will default to an empty string

You can also use following variables prefixed with "_" in the value field:

  • _random will pick random theme or font. Doesn't work on SHOW_EXCEPTION
  • _prompt will use the viewer submitted text. Requires "Require Viewer to Enter Text" to be enabled in the reward setting on twitch

Then you can go to the settings of the plugin and click "Upload JSON Configuration file". Select the file you made and everything should automatically reload and work!


If you have more ideas to add, feel free to either reach out via Twitter, Discord or open an issue on this repo


If you want to contribute with either new reward ideas or bug fixes, feel free to open a pull request


If you like this project, consider supporting me by buying me a coffee <3

intellijtwitchchannelpoints's People

Contributors

lukynkacze avatar

Stargazers

SatanicAntiChrist avatar Storm avatar Martin Němeček 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.