What Cuebot does not support¶
C# methods for a Run C# code step. See C# methods for how to use them.
TwitchClientId¶
Not supported in Cuebot: Cuebot never gives its Twitch login details to scripts. Reading it stops your code with a "not supported" error.
string TwitchClientId { get; }
Example
string clientId = CPH.TwitchClientId;
TwitchOAuthToken¶
Not supported in Cuebot: Cuebot never gives its Twitch login token to scripts. Reading it stops your code with a "not supported" error.
string TwitchOAuthToken { get; }
Example
string token = CPH.TwitchOAuthToken;
TwitchGetChannelPointsUsedByUserId¶
Not supported in Cuebot: Cuebot counts reward redemptions, not how many channel points a viewer spent. It only writes a warning in the log.
long TwitchGetChannelPointsUsedByUserId(string userId)
Gives back: Always 0.
Example
long used = CPH.TwitchGetChannelPointsUsedByUserId("12345678");
CPH.LogInfo($"Points used: {used}");
TwitchUnblockUser¶
Not supported in Cuebot: Cuebot does not ask Twitch for the permission to manage blocked users. It only writes a warning in the log.
bool TwitchUnblockUser(string userLogin)
Gives back: Always false.
Example
bool ok = CPH.TwitchUnblockUser("coolviewer");
CPH.LogInfo($"Unblocked: {ok}");
TwitchUnblockUserById¶
Not supported in Cuebot: Cuebot does not ask Twitch for the permission to manage blocked users. It only writes a warning in the log.
bool TwitchUnblockUserById(string userId)
Gives back: Always false.
Example
bool ok = CPH.TwitchUnblockUserById("12345678");
CPH.LogInfo($"Unblocked: {ok}");
TwitchGetBitsDonatedByUserId¶
Not supported in Cuebot: Cuebot does not keep a total of the Bits each viewer cheered. It only writes a warning in the log.
long TwitchGetBitsDonatedByUserId(string userId)
Gives back: Always 0.
Example
long bits = CPH.TwitchGetBitsDonatedByUserId("12345678");
CPH.LogInfo($"Bits: {bits}");
SetChannelGameById¶
Not supported in Cuebot: Cuebot sets the Twitch category by its name, not its id. It only writes a warning in the log. Use SetChannelGame with the category name instead.
bool SetChannelGameById(string gameId)
Gives back: Always false.
Example
bool ok = CPH.SetChannelGameById("509658");
CPH.LogInfo($"Changed: {ok}");
AddQuoteForTrovo¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
int AddQuoteForTrovo(string userId, string quote, bool captureGame = false)
Gives back: Always -1.
Example
int quote = CPH.AddQuoteForTrovo("12345", "Best stream ever!");
CPH.LogInfo($"Quote number: {quote}");
SendTrovoMessage¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and sends nothing.
void SendTrovoMessage(string message, bool useBot = true, bool fallback = true)
Gives back: Nothing.
Example
CPH.SendTrovoMessage("Hello Trovo!");
TrovoGetBroadcaster¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
TrovoUserInfo? TrovoGetBroadcaster()
Gives back: Always null (nothing).
Example
var info = CPH.TrovoGetBroadcaster();
CPH.LogInfo($"Found: {info != null}");
TrovoGetBot¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
TrovoUserInfo? TrovoGetBot()
Gives back: Always null (nothing).
Example
var info = CPH.TrovoGetBot();
CPH.LogInfo($"Found: {info != null}");
TrovoSetTitle¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
bool TrovoSetTitle(string title)
Gives back: Always false.
Example
bool ok = CPH.TrovoSetTitle("Chill games tonight");
CPH.LogInfo($"Changed: {ok}");
TrovoBanUser¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
bool TrovoBanUser(string userName, bool bot = false)
Gives back: Always false.
Example
bool ok = CPH.TrovoBanUser("spammer");
CPH.LogInfo($"Banned: {ok}");
TrovoUnbanUser¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
bool TrovoUnbanUser(string userName, bool bot = false)
Gives back: Always false.
Example
bool ok = CPH.TrovoUnbanUser("spammer");
CPH.LogInfo($"Unbanned: {ok}");
TrovoTimeoutUser¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
bool TrovoTimeoutUser(string userName, int duration, bool bot = false)
Gives back: Always false.
Example
bool ok = CPH.TrovoTimeoutUser("spammer", 60);
CPH.LogInfo($"Timed out: {ok}");
GetTrovoUserVar¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
T? GetTrovoUserVar<T>(string userName, string varName, bool persisted = true)
Gives back: Always the empty default (like 0).
Example
int points = CPH.GetTrovoUserVar<int>("coolviewer", "points");
CPH.LogInfo($"Points: {points}");
GetTrovoUserVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
T? GetTrovoUserVarById<T>(string userId, string varName, bool persisted = true)
Gives back: Always the empty default (like 0).
Example
int points = CPH.GetTrovoUserVarById<int>("12345", "points");
CPH.LogInfo($"Points: {points}");
GetTrovoUsersVar¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log.
List<UserVariableValue<T>> GetTrovoUsersVar<T>(string varName, bool persisted = true)
Gives back: Always an empty list.
Example
var all = CPH.GetTrovoUsersVar<int>("points");
CPH.LogInfo($"Viewers: {all.Count}");
SetTrovoUserVar¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and stores nothing.
void SetTrovoUserVar(string userName, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetTrovoUserVar("coolviewer", "points", 100);
SetTrovoUserVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and stores nothing.
void SetTrovoUserVarById(string userId, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetTrovoUserVarById("12345", "points", 100);
SetTrovoUsersVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and stores nothing.
void SetTrovoUsersVarById(List<string> userIds, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetTrovoUsersVarById(new List<string> { "12345", "67890" }, "points", 100);
IncrementAllTrovoUsersVar¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and changes nothing.
void IncrementAllTrovoUsersVar(string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.IncrementAllTrovoUsersVar("points", 10);
IncrementTrovoUsersVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and changes nothing.
void IncrementTrovoUsersVarById(List<string> userIds, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.IncrementTrovoUsersVarById(new List<string> { "12345" }, "points", 10);
IncrementOrCreateTrovoUsersVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and changes nothing.
void IncrementOrCreateTrovoUsersVarById(List<string> userIds, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.IncrementOrCreateTrovoUsersVarById(new List<string> { "12345" }, "points", 10);
UnsetTrovoUserVar¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and deletes nothing.
void UnsetTrovoUserVar(string userName, string varName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetTrovoUserVar("coolviewer", "points");
UnsetTrovoUserVarById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and deletes nothing.
void UnsetTrovoUserVarById(string userId, string varName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetTrovoUserVarById("12345", "points");
UnsetTrovoUser¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and deletes nothing.
void UnsetTrovoUser(string userName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetTrovoUser("coolviewer");
UnsetTrovoUserById¶
Not supported in Cuebot: Cuebot has no Trovo connection. It only writes a warning in the log and deletes nothing.
void UnsetTrovoUserById(string userId, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetTrovoUserById("12345");
GetVStreamUserVar¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log.
T? GetVStreamUserVar<T>(string userName, string varName, bool persisted = true)
Gives back: Always the empty default (like 0).
Example
int points = CPH.GetVStreamUserVar<int>("coolviewer", "points");
CPH.LogInfo($"Points: {points}");
GetVStreamUserVarById¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log.
T? GetVStreamUserVarById<T>(string userId, string varName, bool persisted = true)
Gives back: Always the empty default (like 0).
Example
int points = CPH.GetVStreamUserVarById<int>("12345", "points");
CPH.LogInfo($"Points: {points}");
GetVStreamUsersVar¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log.
List<UserVariableValue<T>> GetVStreamUsersVar<T>(string varName, bool persisted = true)
Gives back: Always an empty list.
Example
var all = CPH.GetVStreamUsersVar<int>("points");
CPH.LogInfo($"Viewers: {all.Count}");
SetVStreamUserVar¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and stores nothing.
void SetVStreamUserVar(string userName, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetVStreamUserVar("coolviewer", "points", 100);
SetVStreamUserVarById¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and stores nothing.
void SetVStreamUserVarById(string userId, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetVStreamUserVarById("12345", "points", 100);
SetVStreamUsersVarById¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and stores nothing.
void SetVStreamUsersVarById(List<string> userIds, string varName, object? value, bool persisted = true)
Gives back: Nothing.
Example
CPH.SetVStreamUsersVarById(new List<string> { "12345", "67890" }, "points", 100);
UnsetVStreamUserVar¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and deletes nothing.
void UnsetVStreamUserVar(string userName, string varName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetVStreamUserVar("coolviewer", "points");
UnsetVStreamUserVarById¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and deletes nothing.
void UnsetVStreamUserVarById(string userId, string varName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetVStreamUserVarById("12345", "points");
UnsetVStreamUser¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and deletes nothing.
void UnsetVStreamUser(string userName, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetVStreamUser("coolviewer");
UnsetVStreamUserById¶
Not supported in Cuebot: Cuebot has no VStream connection. It only writes a warning in the log and deletes nothing.
void UnsetVStreamUserById(string userId, bool persisted = true)
Gives back: Nothing.
Example
CPH.UnsetVStreamUserById("12345");