Repository navigation
Reference Script Functions Twitch
Also on the Cuebot Docs site.
Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.
Adds a word or phrase to your Twitch blocked terms, so messages with it are hidden. Fails when the term is empty. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
term |
term |
The word or phrase to block, like "buy followers". |
Gives back: An object with blockedTermId.
C#
var answer = await Cb.Call("twitch.addBlockedTerm", new { term = "buy followers" });Python
answer = cb.twitch_add_blocked_term(term="buy followers")Makes a viewer a moderator in your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.addModerator", new { user = "coolviewer42" });Python
answer = cb.twitch_add_moderator(user="coolviewer42")Marks a viewer as suspicious. "Active Monitoring" flags their messages for your mods; "Restricted" keeps their messages out of chat. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
status |
status |
Optional. "Active Monitoring" (the default) or "Restricted". |
Gives back: An object with suspiciousUser, suspiciousUserName, suspiciousUserId, suspiciousUserType, suspiciousStatusResult, suspiciousStatus (like "RESTRICTED") and suspiciousTypes.
C#
var answer = await Cb.Call("twitch.addSuspiciousStatus", new { user = "coolviewer42", status = "Restricted" });Python
answer = cb.twitch_add_suspicious_status(user="coolviewer42", status="Restricted")Adds one tag to your Twitch channel. Your other tags stay. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
tag |
tag |
The tag, like "Cozy". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.addTag", new { tag = "Cozy" });Python
answer = cb.twitch_add_tag(tag="Cozy")Makes a viewer a VIP in your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.addVip", new { user = "coolviewer42" });Python
answer = cb.twitch_add_vip(user="coolviewer42")Puts an invited guest into a Twitch Guest Star slot. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
slot |
slot |
Optional. The slot number, from 1 up to the number of slots, like "2". Leave it out for 1. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.assignGuestStarSlot", new { user = "coolviewer42", slot = "2" });Python
answer = cb.twitch_assign_guest_star_slot(user="coolviewer42", slot="2")Bans a viewer from your Twitch chat for good. Fails when the user is not found. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
reason |
reason |
Optional. Why, like "Spam". |
Gives back: An object with bannedUser (display name), bannedUserName (login), bannedUserId, bannedUserType ("twitch") and banResult (true).
C#
var answer = await Cb.Call("twitch.ban", new { user = "spambot123", reason = "Spam" });Python
answer = cb.twitch_ban(user="spambot123", reason="Spam")Cancels the running Twitch prediction and gives everyone their points back. Fails when Twitch is not connected.
Gives back: An object with cancelled (true), active and the prediction's details: prediction.Id, prediction.Title, prediction.outcome0.title and so on.
C#
var answer = await Cb.Call("twitch.cancelPrediction");Python
answer = cb.twitch_cancel_prediction()Stops the raid you started, before it goes. Fails when Twitch is not connected.
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.cancelRaid");Python
answer = cb.twitch_cancel_raid()Clears every message from your Twitch chat. Fails when Twitch is not connected.
Gives back: An object with clearSuccess (true).
C#
var answer = await Cb.Call("twitch.clearChat");Python
answer = cb.twitch_clear_chat()Removes every tag from your Twitch channel. Fails when Twitch is not connected.
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.clearTags");Python
answer = cb.twitch_clear_tags()Turns many channel point rewards on, off, paused or unpaused in one go. Fails when a name matches no reward or group. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enable |
enable |
Optional. Reward titles, ids or reward group names, one per line or separated by |. |
disable |
disable |
Optional. Reward titles, ids or reward group names, one per line or separated by |. |
pause |
pause |
Optional. Reward titles, ids or reward group names, one per line or separated by |. |
unpause |
unpause |
Optional. Reward titles, ids or reward group names, one per line or separated by |. |
disableNotConfigured |
disable_not_configured |
Optional. true also turns off every reward that is in no reward group. Leave it out for false. |
Gives back: An object with rewardsChanged and rewardsSkipped (rewards Cuebot could not change).
C#
var answer = await Cb.Call("twitch.configureRewards", new { enable = "Hydrate!|Stretch", disable = "Games" });Python
answer = cb.twitch_configure_rewards(enable="Hydrate!|Stretch", disable="Games")Makes a clip of your live Twitch stream. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
hasDelay |
has_delay |
Optional. true makes the clip account for your stream delay. Leave it out for false. |
Gives back: An object with clipId, clipEditUrl, clipUrl, createClipSuccess, createClipId, createClipCreatedAt and createClipUrl.
C#
var answer = await Cb.Call("twitch.createClip");Python
answer = cb.twitch_create_clip()Starts a Twitch Guest Star session. Fails when Twitch is not connected.
Gives back: An object with guestStarActive, guestStarSessionId, guestStarGuestCount, and guestStarGuest0, guestStarGuest0UserName, guestStarGuest0UserId, guestStarGuest0Slot, guestStarGuest0IsLive, guestStarGuest0Volume and so on.
C#
var answer = await Cb.Call("twitch.createGuestStarSession");Python
answer = cb.twitch_create_guest_star_session()Adds a stream marker at this moment, so you can find it again later in your video. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
description |
description |
Optional. A short note for the marker, like "Epic win". |
Gives back: An object with markerId, markerPosition (seconds into the stream), streamMarkerSuccess, streamMarkerId, streamMarkerCreatedAt, streamMarkerDescription and streamMarkerPosition.
C#
var answer = await Cb.Call("twitch.createMarker", new { description = "Epic win" });Python
answer = cb.twitch_create_marker(description="Epic win")Starts a Twitch poll in your chat with 2 to 5 choices. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
title |
title |
The question, like "Which game next?" |
choices |
choices |
The answers as text, one per line or separated by |, like "Minecraft|Fortnite|Tetris". |
duration |
duration |
Optional. How long the poll runs, in seconds (15 to 1800). Leave it out for 60. |
pointsPerVote |
points_per_vote |
Optional. Channel points for each extra vote. Leave it out (or 0) to turn extra votes off. |
Gives back: An object with pollId and success (true).
C#
var answer = await Cb.Call("twitch.createPoll", new { title = "Which game next?", choices = "Minecraft|Fortnite|Tetris", duration = 120 });Python
answer = cb.twitch_create_poll(title="Which game next?", choices="Minecraft|Fortnite|Tetris", duration=120)Starts a Twitch prediction: viewers bet channel points on 2 to 10 outcomes. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
title |
title |
The question, like "Will I beat the boss?" |
outcomes |
outcomes |
The outcomes as text, one per line or separated by |, like "Yes|No". |
window |
window |
Optional. How long viewers can bet, in seconds (30 to 1800). Leave it out for 120. |
Gives back: An object with predictionId, prediction.Id and success (true).
C#
var answer = await Cb.Call("twitch.createPrediction", new { title = "Will I beat the boss?", outcomes = "Yes|No", window = 60 });Python
answer = cb.twitch_create_prediction(title="Will I beat the boss?", outcomes="Yes|No", window=60)Makes a new channel point reward. Cuebot can change it later because it made it. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
title |
title |
The reward name, like "Hydrate!" |
cost |
cost |
Optional. The price in channel points. Leave it out for 100. |
prompt |
prompt |
Optional. The text viewers see under the title. |
inputRequired |
input_required |
Optional. true makes viewers type a message when they redeem. Leave it out for false. |
enabled |
enabled |
Optional. false makes it hidden at first. Leave it out for true. |
Gives back: An object with createdRewardId.
C#
var answer = await Cb.Call("twitch.createReward", new { title = "Hydrate!", cost = 500, prompt = "Make me drink some water" });Python
answer = cb.twitch_create_reward(title="Hydrate!", cost=500, prompt="Make me drink some water")Takes back a viewer's Twitch Guest Star invite. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.deleteGuestStarInvite", new { user = "coolviewer42" });Python
answer = cb.twitch_delete_guest_star_invite(user="coolviewer42")Removes a guest from their Twitch Guest Star slot. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
slot |
slot |
Optional. The slot number, from 1 up to the number of slots, like "2". Leave it out for 1. |
reinvite |
reinvite |
Optional. true sends them back to the invite list. Leave it out for false. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.deleteGuestStarSlot", new { user = "coolviewer42", slot = "2" });Python
answer = cb.twitch_delete_guest_star_slot(user="coolviewer42", slot="2")Deletes one message from your Twitch chat. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
messageId |
message_id |
Optional. The id of the message. Leave it out for the chat message that triggered the action (%messageId%). |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.deleteMessage", new { messageId = "b1c2d3e4-1234-5678-9abc-def012345678" });Python
answer = cb.twitch_delete_message(message_id="b1c2d3e4-1234-5678-9abc-def012345678")Deletes a channel point reward for good. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.deleteReward", new { reward = "Hydrate!" });Python
answer = cb.twitch_delete_reward(reward="Hydrate!")Turns emote-only chat on or off: viewers can only send emotes. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.emoteOnly", new { enabled = true });Python
answer = cb.twitch_emote_only(enabled=True)Ends a Twitch Guest Star session. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.endGuestStarSession");Python
answer = cb.twitch_end_guest_star_session()Ends the running Twitch poll early. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
mode |
mode |
Optional. "Terminate" (the default) ends it and shows the results; "Archive" ends it and hides them. Capital letters do not matter. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.endPoll");Python
answer = cb.twitch_end_poll()Turns follower-only chat on or off: only followers can chat, optionally after following for some minutes. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
minutes |
minutes |
Optional. How long someone must have followed, in minutes (0 to 129600, which is 3 months). Leave it out for 0. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.followerMode", new { enabled = true, minutes = 10 });Python
answer = cb.twitch_follower_mode(enabled=True, minutes=10)Gets your Twitch ad schedule: when the next ad comes and how many snoozes you have. Fails when Twitch is not connected.
Gives back: An object with nextAdAt, lastAdAt, adDuration, prerollFreeTime, snoozeCount, snoozeRefreshAt, prerollFree and prerollFreeSeconds.
C#
var answer = await Cb.Call("twitch.getAdSchedule");Python
answer = cb.twitch_get_ad_schedule()Lists every blocked word or phrase of your Twitch channel. Fails when Twitch is not connected.
Gives back: A list, each with id and text.
C#
var answer = await Cb.Call("twitch.getBlockedTerms");Python
answer = cb.twitch_get_blocked_terms()Gives you your Twitch bot account, as set on the Twitch page. Works without asking Twitch.
Gives back: An object with userId, userName and connected. null when no bot account is signed in.
C#
var answer = await Cb.Call("twitch.getBot");Python
answer = cb.twitch_get_bot()Gives you your signed-in Twitch account as Cuebot knows it. Works without asking Twitch.
Gives back: An object with userId, userName, connected (true when Twitch is connected) and scopes (the permissions you gave).
C#
var answer = await Cb.Call("twitch.getBroadcaster");Python
answer = cb.twitch_get_broadcaster()Gets details about your own Twitch account, like partner or affiliate status. Fails when Twitch is not connected.
Gives back: An object with broadcasterUserId, broadcasterUserName, broadcasterUser, broadcasterType, broadcasterIsAffiliate, broadcasterIsPartner, broadcasterProfileImageUrl, broadcasterDescription, botUserId, botUserName and more.
C#
var answer = await Cb.Call("twitch.getBroadcasterInfo");Python
answer = cb.twitch_get_broadcaster_info()Gets a Twitch channel's details: title, category, tags and more. Fails when the channel is not found. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A channel's login name or "id:12345". Leave it out for your own channel. |
Gives back: An object with channelId, channelUser, channelUserName, channelTitle, channelGame, channelGameId, channelTags, channelLanguage, channelContentLabels and channelIsBrandedContent.
C#
var answer = await Cb.Call("twitch.getChannelInfo", new { user = "coolstreamer" });Python
answer = cb.twitch_get_channel_info(user="coolstreamer")Gets your running Twitch charity campaign. Fails when Twitch is not connected.
Gives back: An object with charityActive, charityName, charityCurrent, charityTarget and charityCurrency. Values are empty when no campaign runs.
C#
var answer = await Cb.Call("twitch.getCharityCampaign");Python
answer = cb.twitch_get_charity_campaign()Lists the Bits cheer emotes (cheermotes) that work in your channel, exactly as Twitch gives them. Fails when Twitch is not connected.
Gives back: A list of cheermotes in Twitch's own format (each with prefix, tiers and image links).
C#
var answer = await Cb.Call("twitch.getCheermotes");Python
answer = cb.twitch_get_cheermotes()Gets download links for clips of your channel. Twitch's links only work for a short time. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
clipId |
clip_id |
Optional. The clip id, or up to 10 ids separated by commas. Leave it out for %clipId% (for example from twitch.createClip). |
Gives back: An object with clipDownloadCount, clipDownloadUrl, clipLandscapeDownloadUrl and clipPortraitDownloadUrl (of the first clip), plus clipDownload0.clipId, clipDownload0.landscapeUrl and so on.
C#
var answer = await Cb.Call("twitch.getClipDownloadUrls", new { clipId = "AwkwardHelplessSalamanderSwiftRage" });Python
answer = cb.twitch_get_clip_download_urls(clip_id="AwkwardHelplessSalamanderSwiftRage")Lists clips of a Twitch channel or of a category, most viewed first. Handy for a clip player. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A channel's login name or "id:12345". Leave it (and gameId) out for your own channel. |
gameId |
game_id |
Optional. A category id, to get that category's clips instead of a channel's. |
startedAt |
started_at |
Optional. Only clips made after this date and time, like "2026-10-01T00:00:00Z". |
endedAt |
ended_at |
Optional. Only clips made before this date and time. |
count |
count |
Optional. How many clips at most. Leave it out (or 0) for up to 1000. |
featured |
featured |
Optional. true gives only featured clips, false only the others. Leave it out for all. |
Gives back: A list of clips, each with id, url, embedUrl, broadcasterName, creatorName, title, viewCount, createdAt, thumbnailUrl, duration, isFeatured and more.
C#
var answer = await Cb.Call("twitch.getClips", new { count = 10 });Python
answer = cb.twitch_get_clips(count=10)Tells you if and how long a viewer has followed your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with isFollowing, followedAt, followAgeDays, followAge (like "2 years, 3 months"), followDate, followAgeLong, followAgeShort, followAge.years and more.
C#
var answer = await Cb.Call("twitch.getFollowAge", new { user = "coolviewer42" });Python
answer = cb.twitch_get_follow_age(user="coolviewer42")Gets how many followers your Twitch channel has, and who followed last. Fails when Twitch is not connected.
Gives back: An object with followerCount, latestFollower, latestFollowerUserName and latestFollowerUserId.
C#
var answer = await Cb.Call("twitch.getFollowerCount");Python
answer = cb.twitch_get_follower_count()Lists the people invited to your Twitch Guest Star session. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: An object with guestStarInviteCount, guestStarInvites (user ids, separated by commas), and guestStarInvite0UserId, guestStarInvite0Status and so on.
C#
var answer = await Cb.Call("twitch.getGuestStarInvites");Python
answer = cb.twitch_get_guest_star_invites()Gets your running Twitch Guest Star session and its guests. Fails when Twitch is not connected.
Gives back: An object with guestStarActive, guestStarSessionId, guestStarGuestCount, and guestStarGuest0, guestStarGuest0UserName, guestStarGuest0UserId, guestStarGuest0Slot, guestStarGuest0IsLive, guestStarGuest0Volume and so on.
C#
var answer = await Cb.Call("twitch.getGuestStarSession");Python
answer = cb.twitch_get_guest_star_session()Gets your Twitch Guest Star settings. Fails when Twitch is not connected.
Gives back: An object with guestStarSlotCount, guestStarLayout, guestStarModeratorSendLive, guestStarBrowserSourceAudio and guestStarBrowserSourceToken.
C#
var answer = await Cb.Call("twitch.getGuestStarSettings");Python
answer = cb.twitch_get_guest_star_settings()Tells you who subscribed last, as Cuebot saw it.
Gives back: An object with latestSubscriber.userName, latestSubscriber.userLogin, latestSubscriber.userId, latestSubscriber.tier (like "Tier1"), latestSubscriber.isGift and latestSubscriber.at.
C#
var answer = await Cb.Call("twitch.getLatestSubscriber");Python
answer = cb.twitch_get_latest_subscriber()Lists every moderator of your Twitch channel. Fails when Twitch is not connected.
Gives back: A list, each with userId, userLogin and userName.
C#
var answer = await Cb.Call("twitch.getModerators");Python
answer = cb.twitch_get_moderators()Gets the message pinned in your Twitch chat right now. Fails when Twitch is not connected.
Gives back: An object with isPinned, pinnedMessage, pinnedMessageId, pinnedUser, pinnedUserName, pinnedUserId, pinnedBy, pinnedAt and pinnedUntil. Text values are empty when nothing is pinned.
C#
var answer = await Cb.Call("twitch.getPinnedMessage");Python
answer = cb.twitch_get_pinned_message()Gets your latest Twitch poll and its votes. Fails when Twitch is not connected.
Gives back: An object with pollId, pollTitle, pollStatus, pollIsActive, pollChoiceCount, pollChoice0, pollChoice0Votes and so on, active, plus poll.Title, poll.votes and more.
C#
var answer = await Cb.Call("twitch.getPoll");Python
answer = cb.twitch_get_poll()Gets your latest Twitch prediction and its bets. Fails when Twitch is not connected.
Gives back: An object with predictionId, predictionTitle, predictionStatus, predictionOutcomeCount, predictionOutcome0, predictionOutcome0Users, predictionOutcome0Points and so on, active, plus prediction.* details.
C#
var answer = await Cb.Call("twitch.getPrediction");Python
answer = cb.twitch_get_prediction()Gets one person in your Twitch chat by their number in the list. Handy with a random number. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
index |
index |
Optional. The number, starting at 0 for the first person. Leave it out for 0. |
Gives back: An object with presentUsersCount, presentUser (their name, or false when the number is too big), presentUserId, presentUserName and presentUserType.
C#
var answer = await Cb.Call("twitch.getPresentUser", new { index = 3 });Python
answer = cb.twitch_get_present_user(index=3)Gets the people in your Twitch chat right now. Fails when Twitch is not connected.
Gives back: An object with presentViewerCount and presentViewers (their login names, separated by commas).
C#
var answer = await Cb.Call("twitch.getPresentViewers");Python
answer = cb.twitch_get_present_viewers()Picks random people from your Twitch chat. Handy for giveaways. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
count |
count |
Optional. How many to pick. Leave it out for 1. |
excludeBroadcaster |
exclude_broadcaster |
Optional. true (the default) leaves you and your bot out; false lets them be picked. |
Gives back: An object with randomUserCount, and randomUser0, randomUserName0, randomUserId0, randomUserType0 for the first pick, and so on.
C#
var answer = await Cb.Call("twitch.getRandomUsers", new { count = 3 });Python
answer = cb.twitch_get_random_users(count=3)Tells you how often a channel point reward was redeemed, in total and by one viewer. Cuebot counts these itself. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
user |
user |
Optional. The viewer to count: a login name or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with counter (all redeems) and userCounter (that viewer's redeems).
C#
var answer = await Cb.Call("twitch.getRewardCounter", new { reward = "Hydrate!" });Python
answer = cb.twitch_get_reward_counter(reward="Hydrate!")Gets the settings of one channel point reward. Fails when no reward matches. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
Gives back: An object with rewardId, rewardTitle, rewardPrompt, rewardCost, rewardEnabled, rewardPaused, rewardInStock, rewardBackgroundColor, rewardCooldown, rewardMaxPerStream, rewardMaxPerUser, rewardIsManageable and more.
C#
var answer = await Cb.Call("twitch.getRewardInfo", new { reward = "Hydrate!" });Python
answer = cb.twitch_get_reward_info(reward="Hydrate!")Lists every channel point reward of your Twitch channel. Fails when Twitch is not connected.
Gives back: A list of rewards, each with id, title, prompt, cost, backgroundColor, isEnabled, isPaused, isInStock, maxPerStream, globalCooldownSeconds, isManageable (true when Cuebot can change it) and more.
C#
var answer = await Cb.Call("twitch.getRewards");Python
answer = cb.twitch_get_rewards()Tells you how often each viewer redeemed a channel point reward, as Cuebot counted it. Fails when no reward matches. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
The reward's title or id, like "Hydrate!". |
Gives back: An object with each viewer's user id and their count, like { "12345": 3 }.
C#
var answer = await Cb.Call("twitch.getRewardUserCounters", new { reward = "Hydrate!" });Python
answer = cb.twitch_get_reward_user_counters(reward="Hydrate!")Checks whether Twitch Shield Mode is on. Fails when Twitch is not connected.
Gives back: An object with shieldModeActive and shieldModeModerator (who turned it on).
C#
var answer = await Cb.Call("twitch.getShieldMode");Python
answer = cb.twitch_get_shield_mode()Checks whether a Twitch channel is live, with its viewers, title and uptime. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A channel's login name or "id:12345". Leave it out for your own channel. |
Gives back: An object with isLive, viewerCount, streamTitle, streamGame, streamStartedAt and uptimeSeconds. Values are empty or 0 when the channel is offline.
C#
var answer = await Cb.Call("twitch.getStreamInfo");Python
answer = cb.twitch_get_stream_info()Reads Cuebot's sub counter, for a sub goal or sub train.
Gives back: An object with subCounter.count, subCounter.rollover and subCounter.rolloverCount.
C#
var answer = await Cb.Call("twitch.getSubCounter");Python
answer = cb.twitch_get_sub_counter()Gets how many subscribers your Twitch channel has. Fails when Twitch is not connected.
Gives back: An object with subscriberCount and subPoints.
C#
var answer = await Cb.Call("twitch.getSubscriberCount");Python
answer = cb.twitch_get_subscriber_count()Checks whether a viewer subscribes to your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with isSubscribed, subTier, subIsGift and subGifter.
C#
var answer = await Cb.Call("twitch.getSubStatus", new { user = "coolviewer42" });Python
answer = cb.twitch_get_sub_status(user="coolviewer42")Gets the Twitch teams a channel belongs to. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with teamCount, teams (names, separated by commas) and teamName (the first team).
C#
var answer = await Cb.Call("twitch.getTeamInfo", new { user = "coolstreamer" });Python
answer = cb.twitch_get_team_info(user="coolstreamer")Looks up a Twitch user. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
A Twitch login name (a leading @ is fine) or "id:12345", like "coolviewer42". |
Gives back: An object with id, login, displayName, type, broadcasterType, description, profileImageUrl, offlineImageUrl and createdAt. null when the user is not found.
C#
var answer = await Cb.Call("twitch.getUser", new { user = "coolviewer42" });Python
answer = cb.twitch_get_user(user="coolviewer42")Gets lots of details about a Twitch user: profile, account age, mod/VIP/sub status and their channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with targetFound, targetUser, targetUserName, targetUserId, targetDescription, targetProfileImageUrl, targetCreatedAt, targetAccountAgeDays, targetIsModerator, targetIsVip, targetGame, targetTitle and more.
C#
var answer = await Cb.Call("twitch.getUserInfo", new { user = "coolviewer42" });Python
answer = cb.twitch_get_user_info(user="coolviewer42")Lists every VIP of your Twitch channel. Fails when Twitch is not connected.
Gives back: A list, each with userId, userLogin and userName.
C#
var answer = await Cb.Call("twitch.getVips");Python
answer = cb.twitch_get_vips()Stops new bets on the running Twitch prediction. The result is decided later. Fails when Twitch is not connected.
Gives back: An object with locked (true), active and the prediction's details: prediction.Id, prediction.Title, prediction.outcome0.title and so on.
C#
var answer = await Cb.Call("twitch.lockPrediction");Python
answer = cb.twitch_lock_prediction()Pins a message at the top of your Twitch chat. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
messageId |
message_id |
Optional. The id of the message. Leave it out for the chat message that triggered the action (%messageId%). |
duration |
duration |
Optional. How long to keep it pinned, in seconds (30 to 1800). Leave it out (or 0) to keep it until the stream ends. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.pinMessage", new { duration = 120 });Python
answer = cb.twitch_pin_message(duration=120)Removes a word or phrase from your Twitch blocked terms. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
term |
term |
The blocked text (upper or lower case does not matter) or its id. |
Gives back: true when it was removed, false when the channel has no such blocked term.
C#
var answer = await Cb.Call("twitch.removeBlockedTerm", new { term = "buy followers" });Python
answer = cb.twitch_remove_blocked_term(term="buy followers")Takes moderator away from a viewer in your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.removeModerator", new { user = "coolviewer42" });Python
answer = cb.twitch_remove_moderator(user="coolviewer42")Removes the suspicious mark from a viewer, so their messages show normally again. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with suspiciousUser, suspiciousUserName, suspiciousUserId, suspiciousUserType, suspiciousStatusResult and suspiciousStatus ("NO_TREATMENT").
C#
var answer = await Cb.Call("twitch.removeSuspiciousStatus", new { user = "coolviewer42" });Python
answer = cb.twitch_remove_suspicious_status(user="coolviewer42")Removes one tag from your Twitch channel. Upper or lower case and a leading # do not matter. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
tag |
tag |
The tag, like "Cozy". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.removeTag", new { tag = "Cozy" });Python
answer = cb.twitch_remove_tag(tag="Cozy")Takes VIP away from a viewer in your Twitch channel. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.removeVip", new { user = "coolviewer42" });Python
answer = cb.twitch_remove_vip(user="coolviewer42")Replies to a message in your Twitch chat, so it shows as an answer to it. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
message |
message |
What to say, like "Good question!" |
messageId |
message_id |
Optional. The id of the message to answer. Leave it out for the chat message that triggered the action (%messageId%). |
sendAs |
send_as |
Optional. Who sends it: "Default" (your bot account when it is signed in, otherwise you), "Bot" or "Broadcaster". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.replyToMessage", new { message = "Good question!" });Python
answer = cb.twitch_reply_to_message(message="Good question!")Sets the total redeem count of a channel point reward back to 0. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.resetRewardCounter", new { reward = "Hydrate!" });Python
answer = cb.twitch_reset_reward_counter(reward="Hydrate!")Sets every viewer's redeem count of a channel point reward back to 0. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.resetRewardUserCounters", new { reward = "Hydrate!" });Python
answer = cb.twitch_reset_reward_user_counters(reward="Hydrate!")Sets one viewer's redeem count of one channel point reward back to 0. Fails when the reward or the user is not found. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
The reward's title or id, like "Hydrate!". |
user |
user |
A Twitch login name (a leading @ is fine) or "id:12345", like "coolviewer42". |
Gives back: true.
C#
var answer = await Cb.Call("twitch.resetUserRewardCounter", new { reward = "Hydrate!", user = "coolviewer42" });Python
answer = cb.twitch_reset_user_reward_counter(reward="Hydrate!", user="coolviewer42")Sets one viewer's redeem counts of every channel point reward back to 0. Fails when the user is not found. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
A Twitch login name (a leading @ is fine) or "id:12345", like "coolviewer42". |
Gives back: How many counters were reset.
C#
var answer = await Cb.Call("twitch.resetUserRewardCounters", new { user = "coolviewer42" });Python
answer = cb.twitch_reset_user_reward_counters(user="coolviewer42")Allows or denies a chat message that AutoMod held back. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
messageId |
message_id |
Optional. The id of the held message. Leave it out for %messageId% of the AutoMod trigger. |
decision |
decision |
Optional. "Allow" (the default) shows the message; "Deny" throws it away. Capital letters do not matter. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.resolveAutomod", new { decision = "Deny" });Python
answer = cb.twitch_resolve_automod(decision="Deny")Picks the winning outcome of your Twitch prediction and pays out the points. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
winner |
winner |
The winning outcome: its title, like "Yes", or its number (1, 2, ...). |
title |
title |
Optional. Only resolve a prediction with this title. Leave it out for the latest prediction. |
Gives back: An object with success (true), the prediction's details (prediction.Id, prediction.Title, prediction.outcome0.title and so on) and prediction.winningOutcome.title, .users and .points.
C#
var answer = await Cb.Call("twitch.resolvePrediction", new { winner = "Yes" });Python
answer = cb.twitch_resolve_prediction(winner="Yes")Starts an ad break on your Twitch stream right now. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
length |
length |
Optional. How long, in seconds: 30, 60, 90, 120, 150 or 180. Leave it out for 30. |
Gives back: An object with adLength and adRetryAfter (seconds until you can run another one).
C#
var answer = await Cb.Call("twitch.runAd", new { length = 60 });Python
answer = cb.twitch_run_ad(length=60)Sends a message in your Twitch chat as yourself (not the bot) and pins it right away. Fails when the message is empty. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
message |
message |
What to say and pin, like "Giveaway: type !join" |
duration |
duration |
Optional. How long to keep it pinned, in seconds. Leave it out (or 0) to keep it until the stream ends. |
Gives back: The id of the new message.
C#
var answer = await Cb.Call("twitch.sendAndPinMessage", new { message = "Giveaway: type !join", duration = 300 });Python
answer = cb.twitch_send_and_pin_message(message="Giveaway: type !join", duration=300)Posts an announcement in your Twitch chat: a highlighted message with a coloured bar. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
message |
message |
What to announce, like "Giveaway starts in 5 minutes!" |
color |
color |
Optional. "primary" (your channel colour, the default), "blue", "green", "orange" or "purple". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.sendAnnouncement", new { message = "Giveaway starts in 5 minutes!", color = "purple" });Python
answer = cb.twitch_send_announcement(message="Giveaway starts in 5 minutes!", color="purple")Invites a viewer to your Twitch Guest Star session. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.sendGuestStarInvite", new { user = "coolviewer42" });Python
answer = cb.twitch_send_guest_star_invite(user="coolviewer42")Sends a message in your Twitch chat. Empty text is skipped. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
message |
message |
What to say, like "Thanks for the follow!" |
sendAs |
send_as |
Optional. Who sends it: "Default" (your bot account when it is signed in, otherwise you), "Bot" or "Broadcaster". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.sendMessage", new { message = "Thanks for the follow!" });Python
answer = cb.twitch_send_message(message="Thanks for the follow!")Sends an official Twitch shoutout to another channel, so your viewers can follow them with one click. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with shoutoutSuccess (true).
C#
var answer = await Cb.Call("twitch.sendShoutout", new { user = "coolstreamer" });Python
answer = cb.twitch_send_shoutout(user="coolstreamer")Sends a private whisper to a Twitch viewer. The sending account needs a verified phone number on Twitch. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
message |
message |
What to whisper, like "Your code is 1234". |
sendAs |
send_as |
Optional. Who sends it: "Default" (your bot account when it is signed in, otherwise you), "Bot" or "Broadcaster". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.sendWhisper", new { user = "coolviewer42", message = "Thanks for the raid!" });Python
answer = cb.twitch_send_whisper(user="coolviewer42", message="Thanks for the raid!")Turns the branded content (sponsored stream) label on your Twitch channel on or off. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
Gives back: An object with success (true).
C#
var answer = await Cb.Call("twitch.setBrandedContent", new { enabled = true });Python
answer = cb.twitch_set_branded_content(enabled=True)Turns one content warning label on your Twitch channel on or off, like "Strong language". Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
label |
label |
Optional. "DrugsIntoxication", "SexualThemes", "ViolentGraphic", "Gambling" or "ProfanityVulgarity" (strong language, the default). |
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setContentLabel", new { label = "ProfanityVulgarity", enabled = true });Python
answer = cb.twitch_set_content_label(label="ProfanityVulgarity", enabled=True)Changes the category (game) of your Twitch stream. It picks the exact name, or else the best search match. Fails when nothing matches. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
game |
game |
The category or game name, like "Just Chatting". |
Gives back: An object with gameId, gameName, gameBoxArt and gameSuccess (true).
C#
var answer = await Cb.Call("twitch.setGame", new { game = "Just Chatting" });Python
answer = cb.twitch_set_game(game="Just Chatting")Changes the background colour of a channel point reward. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
color |
color |
Optional. The colour as #RRGGBB, like "#FF6600". Leave it out for Twitch purple (#9147FF). |
random |
random |
Optional. true picks a random colour instead. Leave it out for false. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardColor", new { reward = "Hydrate!", color = "#FF6600" });Python
answer = cb.twitch_set_reward_color(reward="Hydrate!", color="#FF6600")Sets how long everyone must wait between redeems of a channel point reward. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
seconds |
seconds |
Optional. The wait in seconds, like 60. 0 (the default) turns the cooldown off. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardCooldown", new { reward = "Hydrate!", seconds = 300 });Python
answer = cb.twitch_set_reward_cooldown(reward="Hydrate!", seconds=300)Changes the price of a channel point reward. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
cost |
cost |
Optional. The new price in channel points. Leave it out for 100. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardCost", new { reward = "Hydrate!", cost = 1000 });Python
answer = cb.twitch_set_reward_cost(reward="Hydrate!", cost=1000)Turns a channel point reward on or off. A turned-off reward is hidden from viewers. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
enabled |
enabled |
Optional. true shows it, false hides it. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardEnabled", new { reward = "Hydrate!", enabled = true });Python
answer = cb.twitch_set_reward_enabled(reward="Hydrate!", enabled=True)Turns every reward in a reward group on or off at once. Rewards Cuebot did not make are skipped. Fails when the group has no rewards. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
group |
group |
The reward group name, as set on the Twitch page (Rewards tab), like "Games". |
state |
state |
Optional. "Enabled" (the default), "Disabled" or "Toggle" (on, unless one of them is already on). |
Gives back: An object with rewardsChanged and rewardsSkipped (rewards Cuebot could not change).
C#
var answer = await Cb.Call("twitch.setRewardGroupEnabled", new { group = "Games", state = "Disabled" });Python
answer = cb.twitch_set_reward_group_enabled(group="Games", state="Disabled")Pauses or unpauses every reward in a reward group at once. Rewards Cuebot did not make are skipped. Fails when the group has no rewards. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
group |
group |
The reward group name, as set on the Twitch page (Rewards tab), like "Games". |
state |
state |
Optional. "Paused" (the default), "Unpaused" or "Toggle" (paused, unless one of them is already paused). |
Gives back: An object with rewardsChanged and rewardsSkipped (rewards Cuebot could not change).
C#
var answer = await Cb.Call("twitch.setRewardGroupPaused", new { group = "Games", state = "Paused" });Python
answer = cb.twitch_set_reward_group_paused(group="Games", state="Paused")Sets how many times a channel point reward can be redeemed per stream, by everyone together. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
max |
max |
Optional. The limit, like 10. 0 (the default) removes the limit. |
additive |
additive |
Optional. true adds max to the current limit (a negative number lowers it) instead of replacing it. Leave it out for false. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardMaxPerStream", new { reward = "Hydrate!", max = 10 });Python
answer = cb.twitch_set_reward_max_per_stream(reward="Hydrate!", max=10)Sets how many times each viewer can redeem a channel point reward per stream. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
max |
max |
Optional. The limit, like 1. 0 (the default) removes the limit. |
additive |
additive |
Optional. true adds max to the current limit (a negative number lowers it) instead of replacing it. Leave it out for false. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardMaxPerUser", new { reward = "Hydrate!", max = 1 });Python
answer = cb.twitch_set_reward_max_per_user(reward="Hydrate!", max=1)Pauses or unpauses a channel point reward. Viewers see a paused reward but cannot redeem it. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
paused |
paused |
Optional. true pauses it, false unpauses it. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardPaused", new { reward = "Hydrate!", paused = true });Python
answer = cb.twitch_set_reward_paused(reward="Hydrate!", paused=True)Changes the text viewers see under a channel point reward. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
prompt |
prompt |
The new text, like "Make me drink some water". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardPrompt", new { reward = "Hydrate!", prompt = "Make me drink some water" });Python
answer = cb.twitch_set_reward_prompt(reward="Hydrate!", prompt="Make me drink some water")Changes the name of a channel point reward. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
title |
title |
The new name, like "Drink water!". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setRewardTitle", new { reward = "Hydrate!", title = "Drink water!" });Python
answer = cb.twitch_set_reward_title(reward="Hydrate!", title="Drink water!")Turns Twitch Shield Mode on or off. It locks chat down quickly during a hate raid. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns Shield Mode on, false turns it off. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setShieldMode", new { enabled = true });Python
answer = cb.twitch_set_shield_mode(enabled=True)Sets Cuebot's sub counter to a number, for example to start a new sub goal.
| Value | In Python | What to put in |
|---|---|---|
count |
count |
Optional. The new count, a whole number of 0 or more. Leave it out for 0. |
rolloverCount |
rollover_count |
Optional. The new rollover count. Leave it out to keep it. |
Gives back: An object with setResult (false when count is not a valid number) and, when it worked, subCounter.count, subCounter.rollover and subCounter.rolloverCount.
C#
var answer = await Cb.Call("twitch.setSubCounter", new { count = 0 });Python
answer = cb.twitch_set_sub_counter(count=0)Replaces all tags of your Twitch channel. Twitch allows at most 10. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
tags |
tags |
The tags as text, separated by commas or spaces, like "English, Chill, Cozy". |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.setTags", new { tags = "English, Chill, Cozy" });Python
answer = cb.twitch_set_tags(tags="English, Chill, Cozy")Changes the title of your Twitch stream. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
title |
title |
The new title, like "Chill games with chat". |
Gives back: An object with titleSuccess (true).
C#
var answer = await Cb.Call("twitch.setTitle", new { title = "Chill games with chat" });Python
answer = cb.twitch_set_title(title="Chill games with chat")Turns slow mode on or off: viewers must wait between messages. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
seconds |
seconds |
Optional. The wait between messages, in seconds (3 to 120). Leave it out for 30. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.slowMode", new { enabled = true, seconds = 10 });Python
answer = cb.twitch_slow_mode(enabled=True, seconds=10)Pushes your next scheduled Twitch ad back, if you have snoozes left. Fails when Twitch is not connected.
Gives back: An object with snooze.success, nextAdAt, lastAdAt, adDuration, prerollFreeTime, snoozeCount, snoozeRefreshAt, prerollFree and prerollFreeSeconds.
C#
var answer = await Cb.Call("twitch.snoozeAd");Python
answer = cb.twitch_snooze_ad()Starts a raid to another Twitch channel. Fails when the channel is not found. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with startRaidSuccess (true).
C#
var answer = await Cb.Call("twitch.startRaid", new { user = "coolstreamer" });Python
answer = cb.twitch_start_raid(user="coolstreamer")Turns subscriber-only chat on or off. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.subscriberMode", new { enabled = true });Python
answer = cb.twitch_subscriber_mode(enabled=True)Times out a viewer in your Twitch chat, so they cannot chat for a while. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
duration |
duration |
Optional. How long, in seconds (1 second to 14 days). Leave it out for 600 (10 minutes). |
reason |
reason |
Optional. Why, like "Calm down". |
Gives back: An object with timedOutUser (display name), timedOutUserName (login), timedOutUserId, timedOutUserType ("twitch") and timeoutResult (true).
C#
var answer = await Cb.Call("twitch.timeout", new { user = "coolviewer42", duration = 300, reason = "Calm down" });Python
answer = cb.twitch_timeout(user="coolviewer42", duration=300, reason="Calm down")Lets a banned viewer chat in your Twitch channel again. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with unbannedUser (display name), unbannedUserName (login), unbannedUserId, unbannedUserType ("twitch") and unbanResult (true).
C#
var answer = await Cb.Call("twitch.unban", new { user = "coolviewer42" });Python
answer = cb.twitch_unban(user="coolviewer42")Turns unique chat on or off: viewers cannot post the same message twice in a row. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
enabled |
enabled |
Optional. true turns it on, false turns it off. Leave it out for true. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.uniqueChat", new { enabled = true });Python
answer = cb.twitch_unique_chat(enabled=True)Unpins a message in your Twitch chat. Fails when nothing is pinned. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
messageId |
message_id |
Optional. The id of the pinned message. Leave it out for the message pinned now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.unpinMessage");Python
answer = cb.twitch_unpin_message()Ends a viewer's timeout early, so they can chat again. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
Gives back: An object with unTimedOutUser (display name), unTimedOutUserName (login), unTimedOutUserId, unTimedOutUserType ("twitch") and unTimedOutResult (true).
C#
var answer = await Cb.Call("twitch.untimeout", new { user = "coolviewer42" });Python
answer = cb.twitch_untimeout(user="coolviewer42")Changes your Twitch Guest Star settings. Anything left at its default stays as it is. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
slotCount |
slot_count |
Optional. How many guest slots, 1 to 6. Leave it out (or 0) to keep it. |
layout |
layout |
Optional. "TILED_LAYOUT", "SCREENSHARE_LAYOUT", "HORIZONTAL_LAYOUT", "VERTICAL_LAYOUT" or "Keep" (the default). |
moderatorSendLive |
moderator_send_live |
Optional. Whether moderators can send guests live: "On", "Off" or "Keep" (the default). |
browserSourceAudio |
browser_source_audio |
Optional. Whether the browser sources play audio: "On", "Off" or "Keep" (the default). |
regenerateBrowserSources |
regenerate_browser_sources |
Optional. true makes new browser source links; the old ones stop working. Leave it out for false. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updateGuestStarSettings", new { slotCount = 4, layout = "TILED_LAYOUT" });Python
answer = cb.twitch_update_guest_star_settings(slot_count=4, layout="TILED_LAYOUT")Moves a Twitch Guest Star guest from one slot to another. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
slot |
slot |
Optional. The slot the guest is in now, like "1". Leave it out for 1. |
toSlot |
to_slot |
Optional. The slot to move them to, like "3". Leave it out for 1. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updateGuestStarSlot", new { slot = "1", toSlot = "3" });Python
answer = cb.twitch_update_guest_star_slot(slot="1", to_slot="3")Changes audio, video, live state or volume of one Twitch Guest Star slot. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
slot |
slot |
Optional. The slot number, from 1 up to the number of slots, like "2". Leave it out for 1. |
audio |
audio |
Optional. The guest's audio: "On", "Off" or "Keep" (the default, leaves it as it is). |
video |
video |
Optional. The guest's video: "On", "Off" or "Keep" (the default, leaves it as it is). |
live |
live |
Optional. Whether the guest is live on stream: "On", "Off" or "Keep" (the default, leaves it as it is). |
volume |
volume |
Optional. Volume from 0 to 100. Leave it out (or -1) to keep it. |
sessionId |
session_id |
Optional. The Guest Star session id. Leave it out for the session running now. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updateGuestStarSlotSettings", new { slot = "2", audio = "Off" });Python
answer = cb.twitch_update_guest_star_slot_settings(slot="2", audio="Off")Changes how long the pinned message stays pinned, counting from now. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
messageId |
message_id |
Optional. The id of the pinned message. Leave it out for the message pinned now. |
duration |
duration |
Optional. Seconds from now (30 to 1800). 0 keeps it until the stream ends. Leave it out for 60. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updatePinnedDuration", new { duration = 300 });Python
answer = cb.twitch_update_pinned_duration(duration=300)Marks a channel point redemption as done, or cancels it and gives the points back. Only works for rewards Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
rewardId |
reward_id |
Optional. The reward id. Leave it out for %rewardId% of the redemption trigger. |
redemptionId |
redemption_id |
Optional. The redemption id. Leave it out for %redemptionId% of the redemption trigger. |
status |
status |
Optional. "Fulfil" (the default) marks it done; "Cancel" refunds the points. Capital letters do not matter. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updateRedemption", new { status = "Cancel" });Python
answer = cb.twitch_update_redemption(status="Cancel")Changes the name, text and price of a channel point reward in one go. Empty values stay as they are. Twitch only lets Cuebot change rewards that Cuebot made. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
reward |
reward |
Optional. The reward's title or id, like "Hydrate". Leave it out for the reward that was just redeemed. |
title |
title |
Optional. The new name. Leave it empty to keep it. |
prompt |
prompt |
Optional. The new text. Leave it empty to keep it. |
cost |
cost |
Optional. A number. With "Set" it becomes the new price; with the other operators it changes the current price (never below 1). |
operator |
operator |
Optional. "Set" (the default), "Add", "Subtract", "Multiply" or "Divide". |
Gives back: An object with rewardCost (the price now).
C#
var answer = await Cb.Call("twitch.updateReward", new Dictionary<string, object?> { ["reward"] = "Hydrate!", ["cost"] = 100, ["operator"] = "Add" });Python
answer = cb.twitch_update_reward(reward="Hydrate!", cost=100, operator="Add")Changes the title, category and tags of your Twitch stream in one go. Anything you leave empty stays as it is. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
title |
title |
Optional. The new title. Leave it empty to keep it. |
game |
game |
Optional. The new category or game name, like "Minecraft". Leave it empty to keep it. |
tags |
tags |
Optional. New tags as text, separated by commas, like "English, Chill". Leave it empty to keep them. |
Gives back: Nothing.
C#
var answer = await Cb.Call("twitch.updateStreamInfo", new { title = "Building a castle", game = "Minecraft" });Python
answer = cb.twitch_update_stream_info(title="Building a castle", game="Minecraft")Sends a viewer an official Twitch warning. Fails when Twitch is not connected.
| Value | In Python | What to put in |
|---|---|---|
user |
user |
Optional. A Twitch login name (a leading @ is fine) or "id:12345". Leave it out for the user who triggered the action. |
reason |
reason |
The warning text they will see, like "Please keep it friendly". |
Gives back: An object with warnedUser (display name), warnedUserName (login), warnedUserId, warnedUserType ("twitch") and warnedResult (true).
C#
var answer = await Cb.Call("twitch.warn", new { user = "coolviewer42", reason = "Please keep it friendly" });Python
answer = cb.twitch_warn(user="coolviewer42", reason="Please keep it friendly")Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- Overlays and alerts
- Writing your own overlay widgets
- Text-to-speech
- Music and now playing
- Points, store and giveaways
- Subathons and goals
- Stream apps and devices
- VTuber apps
- Stream Deck
- The phone app
- Donations and integrations
- Discord bot
- The setup assistant and AI tools
- The assistant on your own computer
- Moving from Streamer.bot
- Cuebot's servers
- Writing code (C# and Python)
- Python in detail
- Using your own code editor
- Controlling Cuebot from other programs
- Backups and your data
- Linux
- Command-line options
- Troubleshooting
- What's experimental
- Reference
