Skip to content

C# methods (CPH)

In a Run C# code step you can use CPH, a toolbox of ready-made methods. CPH.SendMessage("Hi!") sends a chat message, CPH.ObsSetScene("Gameplay") switches your OBS scene, and so on. The names are the same as in Streamer.bot, so code written for Streamer.bot works in Cuebot.

New to code? Read Writing code (C# and Python) first. It shows where the code goes and how a whole script looks. Every example on these pages goes inside Execute():

public class CPHInline
{
    public bool Execute()
    {
        // the example goes here
        return true;
    }
}
Area Methods
Arguments, logging and random numbers 13
Actions and action queues 12
Global and user variables 35
Chat, OBS, speech and sounds 30
Twitch, YouTube and Kick accounts and moderation 21
Twitch rewards, chat, moderation and clips 44
Twitch polls, predictions, raids, rewards and Guest Star 64
YouTube, Kick, Meld Studio, OBS filters and Parse 48
More OBS, and Streamlabs Desktop 67
Quotes, points, credits, pronouns and Decks 41
Commands, groups and timers 55
Chat actions, custom events, other code and the keyboard 13
Stream Deck, VTube Studio, Voicemod, Wave Link, Lumia, MIDI and T.I.T.S. 75
What Cuebot does not support 38

Python code has no CPH. It uses script functions instead, which C# can use too.