Important
There is always a risk when using automation software.
No one is responsible if anything happens to your account.
- Auto Claim Freebies.
- Unsubscribe newsletter.
- Discord notifications.
- Telegram notifications.
-
Go to Google Apps Script and create a new project with your custom name.
-
Select the editor and paste the content inside
src/main.js -
At the top of the script edit
globalConfigto switch notification channels on or off. Both can be enabled at once.Each run's log is sent as one message. Telegram receives it every day, silently unless a game was claimed or your cookies expired. Discord has no silent mode, so it only receives the message on those two occasions.
const globalConfig = { discord: { enabled: false, username: "GOG GDS", avatar_url: undefined, // optional }, telegram: { enabled: true, }, };
-
Open "Project Settings" (gear icon on the left) and add the following "Script Properties":
Property Required Description cookieYes Your GOG cookies (copied from a logged-in browser session). webhookIf discord is on Discord webhook URL. telegram_tokenIf telegram is on Telegram bot token from @BotFather. telegram_chat_idIf telegram is on Telegram chat ID that should receive notifications. telegram_thread_idOptional Topic ID, only for groups with topics enabled (see below). Telegram setup: message @BotFather, run
/newbotand copy the token intotelegram_token. Add the bot to your group (or send it a message directly), then openhttps://api.telegram.org/bot<TOKEN>/getUpdatesin your browser. Copy thechat.idvalue from the response intotelegram_chat_id. Group and channel IDs are negative and start with-100. If your group uses topics, also settelegram_thread_idto the topic's ID. It is the number after the group ID in a topic link, e.g.4inhttps://t.me/c/1234567890/4. -
Select "main" and click the "Run" button at the top. Grant the necessary permissions and confirm that the configuration is correct (Execution started > completed).
-
Click the trigger button on the left side and add a new trigger. Select the function to run: main Select the event source: Time-driven Select the type of time based trigger: Day timer Select the time of day: recommended to choose any off-peak time between 09:00 to 15:00.