GithubHelp home page GithubHelp logo

sgbot's People

Contributors

bdovaz avatar

sgbot's Issues

Stops everything if bad configs

If there error in config while web-editing, all service will down.
Have to update confg and stay web-interface alive to have a chance to change something back


Если в конфигах, которые через веб интерфейс поправили, вдруг какая-то ошибка, то весь сервис падает. Необходимо оставлять работать веб-интерфейс, что бы была возможность починить кривые данные.

Refactor packages

Now everything in main package (dedicated bot, cloud bot)
Separate it between packages to remove unnecessary dependencies (for dedicated an least)

digest func bug

`
05:15:17, 14.07.2022
INFO
START RequestID: 05eb81c3-af64-4d3b-b4fa-a9dc60e30d36 Version: d4eat2uqt6l2ugd958q0

05:15:22, 14.07.2022
{"errorMessage":"execution timeout exceeded","errorType":"JobExecutionTimeoutExceeded","stackTrace":null}

05:15:22, 14.07.2022
INFO
END RequestID: 05eb81c3-af64-4d3b-b4fa-a9dc60e30d36
05:15:22, 14.07.2022
ERROR RequestID: 05eb81c3-af64-4d3b-b4fa-a9dc60e30d36 Code: 504 Message: Execution timeout exceeded

05:15:22, 14.07.2022
INFO
REPORT RequestID: 05eb81c3-af64-4d3b-b4fa-a9dc60e30d36 Duration: 5174.763 ms Billed Duration: 5200 ms Memory Size: 128 MB Max Memory Used: 115 MB Queuing Duration: 0.062 ms Function Init Duration: 173.120 ms
`

In some case, Cloud couldn't send digest, but all records already deleted.

  1. Do not remove records before digest successful sending
  2. Can could function get info from somewhere - why and what is the error and reschedule itself?

add www.gog.com checker

  • set this cookies
  • use direct link to claim giveaway
  • in function - set check period
gog-al #HASH# .gog.com / 2023-11-14T01:26:19.077Z 134       Medium  
csrf true .gog.com / 2023-02-21T01:26:17.676Z 8 Strict     Medium  
gog_us #HASH# .gog.com / 2023-02-15T01:26:19.077Z 32       Medium  
CookieConsent #SomeValue# www.gog.com / 2024-02-14T01:23:17.000Z 227         Medium  
cart_token #HASH# .gog.com / Session 26         Medium  
gog_lc RU_RUB_en-US .gog.com / 2024-02-14T01:26:19.077Z 18         Medium  

Points Accumulator

If some points are left after entering in giveaways, they can be accumulated in further "heavy" GA's.

  1. Check GA for apply. If some points left (more than threshold, 15 for example)
  2. Go to a last pages
  3. Select GA's more than 15 (for example) points, enter - save.
  4. After bot starts get all entered GA's, check for whitelisted games, all other GA's is accumulators. Store for bot lifetime
  5. When check GA's for apply and if there is no points available - check accumulators. If any available, and accumulated points is more than GA need - remove some Accumulator GA and use this points to enter to whitelisted GA.

Collateral damage: if there is no need in points - some unnecessary (accumulated) GA could be won ))) - in this case bot remove points from recent accumulators and reenter into much further.

digest mail parameters from db

All parameters for mailer is env variables - so you have to update function version if you change some of these params. But if you put parameters into DB, you can change any of them without change cloud-function.

Lost giveaways

It's kind of statistics.
Store all the interesting GA in map and remove entered GA at the end of the day.
It gives some statistics about missing GAs
After that you can decide about improve or not this bot )

Save GA stats

Create db with stats for entered GA (how many times title gave away in site and the bot entered) by year )))

And later when fy.py used - get this stat also to decide - remove from followed or not

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.