SendAction

Sends an Action from either the Twitch Broadcaster or Twitch Bot Account (denoted by Italics in Twitch chat)

public void SendAction(string action, bool useBot = true, bool fallback = true)
action
string required

Enter the name of the Action exactly as it appears in Streamer.bot

useBot
bool
fallback
bool
  • true - (If bot bool is set to True), this is the same behaviour as if you had Bot as your preferred account.
  • false - (If bot bool is set to True), it will try to send using only the Bot account, and do nothing if it can't (i.e, not logged in).
void
using System;
public class CPHInline
{
    public bool Execute()
    {

        //Set Action name here
        string action = "Test Action Name";

        //Send reply with bot account
        CPH.SendAction(action, true, true); 
        return true;
    }
}