Repository navigation
Reference Script Functions Tits
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.
Runs one of the triggers you set up in T.I.T.S., by its id or name. Fails with an error when T.I.T.S. is not connected.
| Value | In Python | What to put in |
|---|---|---|
trigger |
trigger |
The trigger's id or name, like "Rain". |
Gives back: true when T.I.T.S. accepted it.
C#
var answer = await Cb.Call("tits.activateTrigger", new { trigger = "Rain" });Python
answer = cb.tits_activate_trigger(trigger="Rain")Runs one of the triggers you set up in T.I.T.S., by its name. Fails with an error when T.I.T.S. is not connected.
| Value | In Python | What to put in |
|---|---|---|
triggerName |
trigger_name |
The trigger's name as T.I.T.S. shows it, like "Rain". |
Gives back: true when T.I.T.S. accepted it.
C#
var answer = await Cb.Call("tits.activateTriggerByName", new { triggerName = "Rain" });Python
answer = cb.tits_activate_trigger_by_name(trigger_name="Rain")Starts connecting to T.I.T.S. It does not wait: Cuebot keeps trying in the background until it works.
Gives back: true once connecting has started (not when it is connected).
C#
var answer = await Cb.Call("tits.connect");Python
answer = cb.tits_connect()Disconnects Cuebot from T.I.T.S.
Gives back: true when done.
C#
var answer = await Cb.Call("tits.disconnect");Python
answer = cb.tits_disconnect()Lists the items you can throw in T.I.T.S.
Gives back: A list of items. Each has id and name.
C#
var answer = await Cb.Call("tits.getItems");Python
answer = cb.tits_get_items()Lists the triggers you set up in T.I.T.S.
Gives back: A list of triggers. Each has id and name.
C#
var answer = await Cb.Call("tits.getTriggers");Python
answer = cb.tits_get_triggers()Checks whether Cuebot is connected to T.I.T.S. (Twitch Integrated Throwing System) right now.
Gives back: true while connected, otherwise false.
C#
var answer = await Cb.Call("tits.isConnected");Python
answer = cb.tits_is_connected()Throws an item at your model in T.I.T.S. Fails with an error when T.I.T.S. has no item with that name or is not connected.
| Value | In Python | What to put in |
|---|---|---|
itemName |
item_name |
The item's name as T.I.T.S. shows it, like "Tomato". An id works too. |
delay |
delay |
Optional. Seconds between throws when throwing more than one. Default 0.05. |
amount |
amount |
Optional. How many to throw, 1 or more. Default 1. |
Gives back: true when something was thrown.
C#
var answer = await Cb.Call("tits.throwItemByName", new { itemName = "Tomato", amount = 5 });Python
answer = cb.tits_throw_item_by_name(item_name="Tomato", amount=5)Throws items at your model in T.I.T.S., picked at random from your list. Fails with an error when one of the items is unknown.
| Value | In Python | What to put in |
|---|---|---|
items |
items |
The items to pick from, by name or id: a list like ["Tomato", "Pillow"], or text split with commas. |
delay |
delay |
Optional. Seconds between throws. Default 0.05. |
amount |
amount |
Optional. How many to throw, 1 or more. Default 1. |
Gives back: How many items were thrown.
C#
var answer = await Cb.Call("tits.throwItems", new { items = new[] { "Tomato", "Pillow" }, amount = 10 });Python
answer = cb.tits_throw_items(items=["Tomato", "Pillow"], amount=10)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
