Code Docs

StreamUP Product Documentation

Currency Core (1).png


General Notices

<aside> 💡 This product will work without the core system, but it is highly recommended for you to install that too.

Currency Core

</aside>

<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> This product comes without a .StreamUP file because it is just controlled inside of Streamer.Bot.

You still need to install the product into Streamer.Bot and use our DLL so make sure you follow the instructions below! Installing Products into Streamer.Bot Adding a Product into Streamer.Bot Setting Up a Product in Streamer.Bot Enabling Chat Commands In Streamer.Bot

All these links go to the same page but for easy of access I included them all so that you can clearly see what is required to do before continuing!

</aside>


After Streamer.Bot Installation


Alright, now that you have installed everything that is required into Streamer.Bot it is time to start using the product. If you are unsure what some of the settings were and what they did you can see explanations at the bottom of this guide.

<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> If there is an tiny image, you can click on the image to see a enhanced version of it.

</aside>

User Guide


How to Use

By default this product is setup to work with Twitch and YouTube. It allows users to gamble their points for a chance to win big on the slot machines. This slot machine is full customisable allowing you to change the odds an emote may show up, which emotes it uses and how much it pays out along with some other settings.


Settings

This overview explains the function of each setting. By adjusting these settings, you can control the rate at which users earn points. You can access this menu by going to the Currency Slots • Settings action then right clicking the Test trigger, then press Test Trigger.

Buttons

  1. Reset Button
  2. Save Button
  3. Cancel Button

General Settings

What would you like to call your points

Bet Amount when none is given

Points a user will have if they don't have enough to bet

Minimum bet amount

Maximum bet amount

Payout when 1st and 2nd Emote Match

How much payout do you want to give for a match Two?

Would you like to fail if bet is under minimum?

Would you like to fail if bet is under maximum?

Untitled


Emote Settings

Emote Settings control which emotes are part of the slots and what effect they have on the game in terms of payout and percentage.

You can have up to 10 emotes and each emote has the following settings:

Enable this emote

How much X should a match 3 Payout?

What % chance do you want to put on this emote showing?

These settings allow you to customize which emotes are used in the slots game, how much they pay out, and how frequently they appear, ensuring a tailored and balanced game experience.

Untitled


Commands

This extension only comes with one command.

Command Purpose
!slot
This is how the user will have a go on the slot machine, with the command !slot <amount>

<aside> 💡 Note that amount can be one of the following.

A Number : !slot 5000 A Percentage : !slot 20% It can use K and M as short for Thousands and Millions : !slot 50k !slot 5m You can use All to call for an all in: !slot all or you can leave it blank to bet the default amount: !slot

</aside>

<aside> ⛔ If you try bet a negative number that will be converted into a positive number.

</aside>


Arguments and Triggers

This game comes with several Custom Triggers so you have full control over what happen with the different out comes, below is a list of the triggers and when they would trigger. Each Trigger is found in the Custom >> Currency trigger context menu.

Trigger Description
Slots All-In Loss Triggers when a player loses all their remaining balance in one slot game.
Slots All-In Win Triggers when a player wins after betting all their remaining balance in one slot game.
Slots Any Loss Triggers whenever a player experiences any loss in a slot game.
Slots Any Win Triggers whenever a player experiences any win in a slot game.
Slots Loss Triggers when a player loses in a slot game, that isn’t an All in bet.
Slots Win Triggers when a player wins in a slot game, that isn’t an All in bet.

These actions will also return several arguments these can be used in your actions.

Argument Name Example Description
gameName Slots This is the name of the game.
pointsName Points This is the name you’ve given to your points.
points 75284 This is the amount of points you have at the start.
rolledEmote1 💚 This is the emote that was rolled in as Slot 1.
rolledEmote2 ❤️ This is the emote that was rolled in as Slot 2.
rolledEmote3 💜 This is the emote that was rolled in as Slot 3.
slotResult 💚
betAmount 3000 This is the amount that ended up been bet.
allIn False This bool is if the bet is an All In bet or not.
oldPoints 75284 This is the points before the bet.
newPoints 72284 This is the points after the bet.
multiplier 10 This is the multiplier of the winnings.
winnings 30000 This is the amount that has been won.
result False This is a bool showing if the bet is a winner or not.

Errors

If something goes wrong slots has some error codes built in these can be used with Generic Fail Trigger. When this happens you can use either %failCode% or %failReason% to differentiate between the errors.

This table shows the error code and the reason that is associated with that error.

| --- | --- |