Config Setup
The foundation file that initializes all global variables and settings for the entire StreamerBot currency system. This single file controls all settings for earning commands, gambling games, adventure games, PVP mechanics, and system integrations like Discord logging and Twitch API.
Overview
ConfigSetup.cs is the central configuration hub for all StreamerBot commands.
Running this file creates global variables that every other command reads from, allowing you to
customize the entire system from one place.
Installation
Download ConfigSetup.cs
Get the file from the GitHub repository.
Create a new Action in StreamerBot
Go to Actions tab, right-click and select Add to create a new action.
Add a C# Sub-Action
Right-click in the sub-actions area, select Core > C# > Execute C# Code.
Paste the ConfigSetup.cs code
Copy the entire contents of ConfigSetup.cs and paste it into the C# editor.
Configure your settings
Edit the configuration values (see Configuration section below) to match your preferences.
Compile and Run
Click Compile, then Test to initialize all global variables.
What This Configures
Core Currency Settings
| Setting | Default | Description |
|---|---|---|
config_currency_name |
"Cub Coins" | Display name for your currency |
config_currency_key |
"cubcoins" | Internal variable key for storing balances |
config_daily_reward |
100 | Base daily claim amount |
config_streak_bonus |
25 | Bonus per day of streak |
Gambling Game Settings
Each gambling game has configurable min/max bets, win multipliers, and cooldowns:
| Game | Min Bet | Max Bet | Win Mult |
|---|---|---|---|
| Blackjack | 25 | 500 | 2x |
| Slots | 10 | 500 | 2-10x |
| Coinflip | 10 | 1000 | 2x |
| Roulette | 25 | 500 | 2-14x |
Earning Command Settings
Work, Fish, Hunt, Mine, and other earning commands have configurable rewards and cooldowns.
API Configuration
Twitch API (Optional)
For clip creation, stream title/game changes, and followage commands:
// Line 344-346 in ConfigSetup.cs
string twitchAccessToken = "YOUR_ACCESS_TOKEN_HERE";
string twitchRefreshToken = "YOUR_REFRESH_TOKEN_HERE";
string twitchClientId = "YOUR_CLIENT_ID_HERE";
Get your tokens from: twitchtokengenerator.com
Required scopes:
channel:manage:broadcast- For clips, stream title, game commandsmoderator:read:followers- For followage command
Discord Webhook (Optional)
For logging all command activity to Discord:
// Line 356-361 in ConfigSetup.cs
string discordWebhookUrl = "YOUR_WEBHOOK_URL_HERE";
bool discordLoggingEnabled = true;
Create a webhook in: Discord Server Settings → Integrations → Webhooks
How It Works
- All commands read their settings from global variables
- ConfigSetup.cs creates/updates those global variables when run
- Changes take effect immediately for all commands
- No need to edit individual command files
Updating Settings
Option 1: Edit values in StreamerBot's Global Variables UI
Option 2: Edit ConfigSetup.cs and run it again to update all values at once
Related Commands
Once ConfigSetup.cs is installed, you can add any of these commands: