Setup
GameCheck is three Streamer.bot actions:
| Action |
What it does |
Script |
Free Game Check |
the free games, DLC, loot and demos messages |
freegamecheck.cs |
Game Sale Check |
the sale events and top deals messages |
gamesalecheck.cs |
[CG] - Settings |
the settings window for both |
gamecheck-settings.cs |
The settings window is built with UIFramework for streamer.bot,
the window the Chat Games use. Its file, UIFramework.dll, is not part of the import: the first time the window
opens, a dialog asks whether to download it. Click Yes; it is saved in the folder UIFramework next to
Streamer.bot and shared by every project that uses it.
Import
Click Import in Streamer.bot and drag the GameCheck.sb file from the
releases into the window, or paste the
import string instead. Click Import, then Yes on the popups that follow.
The three actions land in the group GameCheck, with their triggers already set: the two checks start with
Streamer.bot (Streamer.bot Started), the settings window opens from its Test trigger. Nothing is posted until
Discord is set up in the window, so go on with 1. Discord and 4. First start.
Steps 2 and 3 are only for setting the actions up by hand.
Updating from 1.0.x? Import the new version over the old one. The three actions are replaced; the settings
file, the bot token, the webhook URL and the IsThereAnyDeal key stay where they are, and so do the messages in
Discord. Set Argument sub-actions you added to the imported actions go with the old actions: set those values in
the window afterwards.
Set the two checks up by hand, before there was an import? Do not import over them: the import would add a
second copy of both, and two copies post twice. Paste the new scripts into your existing actions as in step 2 and
replace only the settings action as in step 3 (see also Coming from Set Arguments).
1. Discord
Each action posts either with a bot or through a webhook. A bot can pin its messages and clean up older
copies; a webhook needs no bot at all. One bot and one channel for both actions is the usual setup.
Bot
- Open the Discord Developer Portal, click
New Application, then
Bot → Reset Token and copy the token.
- Under
OAuth2 → URL Generator tick bot, then the permissions View Channels, Send Messages, Embed Links
and Read Message History, plus Pin Messages if the messages should be pinned. Open the generated URL and
invite the bot to your server.
- In Discord, switch on
User Settings → Advanced → Developer Mode, right-click the channel and choose
Copy Channel ID.
Webhook
In the channel's settings: Integrations → Webhooks → New Webhook → Copy Webhook URL.
2. The two actions (by hand)
The scripts are inside the import; the release has them as files too. Do this once for Free Game Check with freegamecheck.cs and once for Game Sale Check with
gamesalecheck.cs:
- In Streamer.bot, open
Actions, right-click the action list, choose Add and enter the name.
- Right-click
Sub-Actions → Core → C# → Execute C# Code. Replace the code in the editor with the whole
script.
- Click
Find Refs, then Save and Compile. It has to compile without errors. The references it needs are
mscorlib.dll, System.dll, System.Net.Http.dll, System.Runtime.Serialization.dll, System.Text.Json.dll,
System.Reflection.Metadata.dll and Newtonsoft.Json.dll.
- Right-click
Triggers → Core → System → Streamer.bot Started. That is the only trigger it needs: from
then on every run plans the next one itself. Add Core → Test as well if you want to start a check by hand.
No Set Argument sub-actions are needed. The settings come from the window.
3. The settings window (by hand)
- Add an action
[CG] - Settings and give it an Execute C# Code sub-action with gamecheck-settings.cs.
- It needs these four references:
mscorlib.dll, System.dll, System.Core.dll and Newtonsoft.Json.dll.
Find Refs adds them; add a missing one in the editor's References tab (right-click → Add reference from file...). Then Save and Compile.
- Add the trigger
Core → Test. Right-click it and choose Test Trigger: the settings window opens, after the
question about UIFramework.dll the first time.
The settings action asks the action Free Game Check what the window holds. In an install made by hand it finds
that action by its name, so the name has to be exactly Free Game Check.

4. First start
- Discord: bot token and channel ID, or a webhook URL. With Both actions use the same bot and channel
switched on, one set of fields serves both.
- Free games and Sales: what is posted, your country, the platforms to leave out, the colours. An
IsThereAnyDeal API key is optional and adds more shops.
- Schedule: how often the stores are read (every 60 minutes unless you change it) and whether the messages
are posted anew every few days.
Save, then open Status and click Check now for each action, or restart Streamer.bot. The messages appear in
the channel within a minute.
The header says how each action posts with what the window holds: Free: bot, Sales: webhook, not set up, or
off while every topic of an action is switched off.
Ctrl+1 … Ctrl+7 switch pages, Ctrl+S saves, and Ctrl+F searches all settings, by their label or their key
(minDiscount finds Min. discount). The pen in the footer lets you rename, move and hide fields and pages.

The Log page shows what both checks wrote into Streamer.bot's log, so a store that failed or a message that
could not be posted is found without leaving the window.

Coming from Set Arguments
Older installs set the actions up with Set Argument sub-actions. They keep working, and a Set Argument value always
wins over the window: the window shows such a setting locked, with the name of the action that holds it, and does
not save it.
Paste the new scripts into both actions first and let each run once (Check now, or a restart): that is how the
window learns which settings are held. To manage a setting in the window, delete or disable its Set Argument
sub-action, run the action once more, open the window again and set the value there. The window does not take the
old values over by itself, so note them before you remove the sub-actions. A timer trigger left over from older
versions can go too; the actions plan their own runs once Streamer.bot Started is their trigger.
Open in the launcher
Open Steam and Epic games in their launcher (on Free games) and Open Steam and Epic deals in their launcher
(on Sales) make the game links open in Steam or the Epic Games Launcher instead of the browser. Discord only
opens web links, so the link goes through a small page on aaskjer.github.io that
hands it on. The first time, your browser asks whether it may open Steam or Epic; tick Always allow to skip the
question from then on. If no launcher is installed, the page offers the store's web page instead.
Where things are kept
- The settings:
GameCheck\GameCheck-Settings.json in the Streamer.bot folder, written only by the window, with
one key per setting (freeCountry, salesDealLimit). The previous version is kept beside it as .bak. A file
from 1.0.x, with a section per action, is read as it is and rewritten with the window's first save.
- Bot token, webhook URL and IsThereAnyDeal key: only in persisted global variables (
FreeGameCheck_botToken,
GameSaleCheck_botToken, …), never in the file. An export of the actions carries no secrets.
- What the actions remember (message ids, what was new when): the global variables
checkFreeGames and
checkGameSales.
- What you changed about the window itself (theme, renamed or moved fields):
GameCheck\uiframework.layout.json.
It survives every import.
- The window:
UIFramework\lib\<version>\UIFramework.dll in the Streamer.bot folder. It checks for a newer
version when the window opens and asks before it downloads one.
When something does not work
- Nothing is posted: open the Log page of the settings window. It shows the lines both checks wrote into
Streamer.bot's log,
FreeGames and GameSales: which store failed, or that the bot token or channel is
missing. In Streamer.bot's own log the same lines start with [FreeGames] or [GameSales].
- The script does not compile: compare its references with the lists above.
- The window does not open: only one window can be open at a time; look in the log for
[GameCheck/Settings].
GameCheck needs UIFramework 2.3.0 or newer: with an older one installed, the settings action offers the update
instead of opening the window.
- "There is no action named 'Free Game Check'": the settings action did not find the check it asks. Import
again, or give the action made by hand exactly that name.
- A red
i in the window's header: click it. It lists what the window could not read or apply.