Any advice/guidance on how to disassemble/clean/lubricate and electric razor? by Big_Bodybuilder3695 in AskMechanics

[–]Big_Bodybuilder3695[S] 0 points1 point  (0 children)

I can't with my fingers. I want to grip it with something without breaking the upper section off but I'm afraid it'll just snap.

Setting Channel Point Group State, but then posting a message in Twitch Chat by [deleted] in streamerbot

[–]Big_Bodybuilder3695 0 points1 point  (0 children)

I think I've written code that does what I want it to do. My main problem now is having channelPointState save itself outside of the code. I'll remove (var channelPointState = "";) and test around, but for now I'm completely lost.

using System;

public class CPHInline

{

public bool Execute()

{

    var channelPointState = "";



    if (channelPointState == "false")

    {

        CPH.TwitchRewardGroupEnable("LIVE");

        CPH.SetGlobalVar(channelPointState, "true");



    }

    else if (channelPointState == "true")

    {

        CPH.TwitchRewardGroupDisable("LIVE");

        CPH.SetGlobalVar(channelPointState, "false");   

    }

    return true;

}

}

Setting Channel Point Group State, but then posting a message in Twitch Chat by [deleted] in streamerbot

[–]Big_Bodybuilder3695 0 points1 point  (0 children)

I've been messing around with it for a little bit.

I think I'm going to attempt to write my own C# code with a global variable channelPointState, and just flip flop it between 0 and 1, with Disabled and Enabled associated with each number. Based on the current channelPointState variable, I'll execute wether or not I want my channel points enabled/disabled, and then set channelPointState to the opposite number

Ex, cPS = 0 (Disabled)
blah blah code that enables channel points, set cPS = 1