Repository navigation
Reference Sub actions Youtube
Also on the Cuebot Docs site.
Saves details about your YouTube account and your bot account as variables for the next steps. It has no settings.
Variables it adds
| Variable | What it holds |
|---|---|
%broadcastUser% |
Your channel name |
%broadcastUserId% |
Your channel ID |
%broadcastCustomUrl% |
Your channel's @handle |
%botUser% |
Your bot account's channel name |
%botIsSignedIn% |
True if the bot account is signed in |
Type id: youtube.addBroadcasterInfo
Makes someone a moderator of your YouTube live chat. Needs a live stream.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.addModerator
Bans someone from your YouTube live chat for good. Needs a live stream.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Variables it adds
| Variable | What it holds |
|---|---|
%bannedUser% |
Name of the banned person |
%bannedUserId% |
Their YouTube channel ID |
%banResult% |
True when it worked |
Type id: youtube.banUser
Starts a poll in your YouTube live chat. Viewers vote right in the chat. Needs a live stream.
| Setting | What to put in |
|---|---|
| Question | The poll question, like "Which game next?". |
| Options (one per line, 2–4) | The answers, one per line. You need 2 to 4. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Variables it adds
| Variable | What it holds |
|---|---|
%pollMessageId% |
ID of the poll, to end it later |
Type id: youtube.createPoll
Deletes one message from your YouTube live chat.
| Setting | What to put in |
|---|---|
| Message id | ID of the message to delete. The default is the message that started this action. Starts as: %messageId%. |
Type id: youtube.deleteMessage
Ends a poll in your YouTube live chat.
| Setting | What to put in |
|---|---|
| Poll message id | ID of the poll to end. Leave empty to end the poll Cuebot started most recently. |
Type id: youtube.endPoll
Finds your latest YouTube live stream and saves its details as variables for the next steps. It has no settings.
Variables it adds
| Variable | What it holds |
|---|---|
%broadcastIsLive% |
True if a live stream was found |
%broadcastTitle% |
Its title |
%broadcastId% |
Its ID |
%broadcastUrl% |
Web link to it |
%concurrentViewers% |
People watching right now |
%likeCount% |
Likes |
%viewCount% |
Views |
Type id: youtube.getBroadcast
Looks up a YouTube channel and saves its details as variables for the next steps. Handy for a shout-out command.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
Variables it adds
| Variable | What it holds |
|---|---|
%channelTitle% |
Channel name |
%channelUrl% |
Web link to the channel |
%channelDescription% |
Its description |
%channelSubscriberCount% |
Subscribers |
%channelVideoCount% |
Videos |
%channelViewCount% |
Total views |
%channelProfileImageUrl% |
Web link to its picture |
Type id: youtube.getChannelInfo
Looks up a YouTube video or stream and saves its details as variables for the next steps.
| Setting | What to put in |
|---|---|
| Video id | The ID of the video (the part after v= in its web link). Leave empty to use your latest live stream. |
Variables it adds
| Variable | What it holds |
|---|---|
%videoTitle% |
Its title |
%videoDescription% |
Its description |
%videoUrl% |
Web link to it |
%videoViewCount% |
Views |
%videoLikeCount% |
Likes |
%videoConcurrentViewers% |
People watching right now (live only) |
%videoPrivacy% |
public, unlisted or private |
Type id: youtube.getVideoInfo
Takes away someone's moderator role in your YouTube live chat. Needs a live stream.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.removeModerator
Writes a message in your YouTube live chat. You can use variables like %user% in the text.
| Setting | What to put in |
|---|---|
| Message | What to write, like "Thanks for watching, %user%!". Messages over 200 letters are cut into several messages. |
| Send as the bot account | Tick to write as your bot account instead of your own account. The bot must be signed in. Starts as: false. |
| Fall back to the broadcaster | Tick to write as you if the bot account is not signed in or fails. Untick to get an error instead. Starts as: true. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.sendMessage
Changes the category of your YouTube stream (the kind of video, like Gaming).
| Setting | What to put in |
|---|---|
| Category number | YouTube's category number. Examples: 20 for Gaming, 22 for People & Blogs, 10 for Music. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.setCategory
Changes the description text of your YouTube live stream.
| Setting | What to put in |
|---|---|
| Description | The new description text. It can have several lines. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.setDescription
Changes who can see your YouTube stream.
| Setting | What to put in |
|---|---|
| Privacy | "public" = everyone can find it. "unlisted" = only people with the link. "private" = only you. Options: public, unlisted, private. Starts as: public. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.setPrivacy
Changes the title of your YouTube live stream.
| Setting | What to put in |
|---|---|
| Title | The new title, like "Playing with viewers!". It cannot be empty. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.setTitle
Changes the title and the description of your YouTube live stream in one step.
| Setting | What to put in |
|---|---|
| Title | The new title, like "Playing with viewers!". It cannot be empty. |
| Description | The new description text. It can have several lines. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Type id: youtube.setTitleAndDescription
Gives someone a timeout in your YouTube live chat. They cannot write for a while. Needs a live stream.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
| Duration (seconds) | How long, in seconds. Example: 300 for 5 minutes. Starts as: 300. |
| Broadcast id | Leave empty to use your latest live (or about to be live) broadcast. Or type the broadcast's ID to pick another one. |
Variables it adds
| Variable | What it holds |
|---|---|
%bannedUser% |
Name of the person |
%bannedUserId% |
Their YouTube channel ID |
%timeoutResult% |
True when it worked |
Type id: youtube.timeoutUser
Lifts a ban or timeout. It only works for bans and timeouts Cuebot gave during this session. For others, use YouTube Studio.
| Setting | What to put in |
|---|---|
| User | Who to pick: their YouTube channel ID (starts with "UC"), their @handle, or the name of someone who chatted recently. The default is the person who started this action. Starts as: %userId%. |
Type id: youtube.unbanUser
Cuebot by Tech Daddy Digital · MIT license · Privacy
Cuebot Docs (the same pages, nicer to read)
- Home
- Start here
-
Guides
- Chat commands
- The mod portal
- 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
