Skip to content
WiLuX-SourcePublic

About

GOG Automation with Google Docs Script.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

GOG GDS logo

GOG GDS

Important

There is always a risk when using automation software.

No one is responsible if anything happens to your account.

Features

  • Auto Claim Freebies.
  • Unsubscribe newsletter.
  • Discord notifications.
  • Telegram notifications.

Setup

  1. Go to Google Apps Script and create a new project with your custom name.

  2. Select the editor and paste the content inside src/main.js

  3. At the top of the script edit globalConfig to 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,
    	},
    };
  4. Open "Project Settings" (gear icon on the left) and add the following "Script Properties":

    Property Required Description
    cookie Yes Your GOG cookies (copied from a logged-in browser session).
    webhook If discord is on Discord webhook URL.
    telegram_token If telegram is on Telegram bot token from @BotFather.
    telegram_chat_id If telegram is on Telegram chat ID that should receive notifications.
    telegram_thread_id Optional Topic ID, only for groups with topics enabled (see below).

    Telegram setup: message @BotFather, run /newbot and copy the token into telegram_token. Add the bot to your group (or send it a message directly), then open https://api.telegram.org/bot<TOKEN>/getUpdates in your browser. Copy the chat.id value from the response into telegram_chat_id. Group and channel IDs are negative and start with -100. If your group uses topics, also set telegram_thread_id to the topic's ID. It is the number after the group ID in a topic link, e.g. 4 in https://t.me/c/1234567890/4.

  5. Select "main" and click the "Run" button at the top. Grant the necessary permissions and confirm that the configuration is correct (Execution started > completed).

  6. 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.

About

GOG Automation with Google Docs Script.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages