Coder Social home page Coder Social logo

goggiveawaynotifier's Introduction

GOGGiveawayNotifier

A CLI tool

  • Fetches GOG giveaway and free game news
  • Sends free game notifications to Telegram, Bark, Email, QQ, PushPlus, DingTalk, PushDeer and Discord.
  • Auto claim GOG giveaway by carrying given cookies and sending GET request to https://www.gog.com/giveaway/claim
    • Different than regular free games, giveways have their own special banners in GOG home page.

Demo Telegram Channel @azhuge233_FreeGames

Build

Install dotnet 8.0 SDK first, you can find installation packages/guides here.

Follow commands will publish project as a executable file.

git clone https://github.com/azhuge233/GOGGiveawayNotifier.git
cd GOGGiveawayNotifier
dotnet publish -c Release -p:PublishDir=/your/path/here -r [win-x64/osx-x64/linux-x64/...] --sc

Usage

Set your telegram bot token and chat ID in config.json first.

Check wiki for more explanations.

Repeatedly running

The program will not add while/for loop, it's a scraper. To schedule the program, use cron.d in Linux(macOS) or Task Scheduler in Windows.

My Free Games Collection

goggiveawaynotifier's People

Contributors

azhuge233 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

goggiveawaynotifier's Issues

Unable to use the notifier

Hi, i downloaded the latest files, compiled with latest dotnet, after launch i receive this error:

C:\GOGGiveawayNotifier\GOGGiveawayNotifier\bin\Release\net5.0\win10-x64>GOGGiveawayNotifier.exe
2021-10-26 10:26:01 | INFO: - Start Job -
2021-10-26 10:26:02 | ERROR: Error: Check config file validation
2021-10-26 10:26:02 | ERROR: No Telegram Token provided!
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at GOGGiveawayNotifier.Program.Main() in C:\GOGGiveawayNotifier\GOGGiveawayNotifier\Program.cs:line 36
at GOGGiveawayNotifier.Program.

()

(Telegram notification is set to true, i compiled both required fields)

Check every 24h?

Hi,

your program is running fine, but is running once and then quitting. Is it possible to add a flag or a variable in config.json to let it run endless?

This is what i get:
C:\GOGGiveawayNotifier\GOGGiveawayNotifier\bin\Release\net5.0\win10-x64>GOGGiveawayNotifier.exe
2021-08-17 10:18:37 | INFO: - Start Job -
2021-08-17 10:18:38 | INFO: There's no giveaway currently.
2021-08-17 10:18:38 | INFO: - End Job -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.