Sign inSign up

mega349/steamgifts-bot-dockerized

By mega349

Updated 6 months ago

steamgifts.com giveaway auto-join bot / Including priority and filter options

Image
1

10K+

mega349/steamgifts-bot-dockerized repository overview

Dockerized - Steamgifts-bot

GitLab: https://gitlab.com/docker_repos/steamgifts-bot-dockerized
DockerHub: https://hub.docker.com/r/mega349/steamgifts-bot-dockerized
Fork from: butilka123/steamgifts-bot [SHA:49f6e3fc18e49f35fbc052994411ac1a77d38f1e]


Description

Autojoin bot for steamgifts.com giveaways.

The bot will enter every visible giveaway at page 1, if the page its empty the next page will be used.
If you setup Priority Pages they will be performed first in given order.
If your points are empty, the bot will wait a random amount of hours (configurable) to farm points.


Setup

  1. Log on at steamgifts.com
  2. Hide what you cant enter at your giveaway settings!!!
  3. Browse your cookies (maybe you will need an Browser-Addon) and copy the SessionID
  4. Setup your Compose file and fill the sessionID
  5. DONT Log out or your session will be invalidated (you can close the window or page)
  • If you are not using Docker, create a .env file in the root folder of the repository, export the env vars to your terminal or pass them as arguments in the given order below, to pass parameters.

Example Docker Compose file

The Example Compose file is for Docker Swarm mode, change it by yourself for standalone.
If your session is invalid the bot will crash (intended), setup a restart policy!

version: '3.8'

services:
  app:
    image: mega349/steamgifts-bot-dockerized:latest
    deploy:
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
    environment:
      - TZ=Europe/Berlin
      - SESSIONID=sessionIdHere 
      - MINRANDOM=1
      - MAXRANDOM=15
      - MINCOST=0
      - MAXCOST=-1
      - MINLEVEL=0
      - MINCHANCE=0
      - MAXTIMELEFT=-1
      - MINSTARTPOINTS=0
      - PRIORITYIGNORECOST=false
      - PRIORITYIGNORELEVEL=false
      - PRIORITYIGNORETIMELEFT=false
      - PRIORITYIGNORECHANCE=false
      - PRIORITYONLY=false
      - PRIORITYPAGES=copy_min=2,type=group,type=wishlist,dlc=true
      - IGNOREFILTER=/girls?/i,/hentai/i,/cute/i,/waifu/i,/dating/i
      - DEBUG=false

Environment vars

ENVDescriptionInfodefault valueNEEDED
TZYour timezoneTimezone identifierEurope/AmsterdamNo
SESSIONIDSessionID from cookie00000Yes
MINRANDOMMin. hours to wait for points0 or more (0.5 for 30 min)1No
MAXRANDOMMax. hours to wait for pointseven or higher then MINRANDOM15No
MINCOSTMin. cost to enter giveaway0 or more0No
MAXCOSTMax. cost to enter giveaway-1 = unlimited-1No
MINLEVELMin. level requirements0 or more0No
MINCHANCEMin. chance in % to enter giveaway0 or more0No
MAXTIMELEFTMax. minutes remaining for giveaway-1 = unlimited-1No
MINSTARTPOINTSMin. Points to start farming0 or more0No
PRIORITYIGNORECOSTThe prioritypages will ignore coststrue or falsefalseNo
PRIORITYIGNORELEVELThe prioritypages will ignore leveltrue or falsefalseNo
PRIORITYIGNORETIMELEFTThe prioritypages will ignore timelefttrue or falsefalseNo
PRIORITYIGNORECHANCEThe prioritypages will ignore chancetrue or falsefalseNo
PRIORITYONLYFarm only prioritypagestrue or falsefalseNo
PRIORITYPAGESWill be performed first in given order"," - SeperatedNo
IGNOREFILTERFilter to ignore giveaways by Text/RegEx"," - SeperatedNo
DEBUGEnable debug console outputfalseNo

Priority Pages

The part of the URL after https://www.steamgifts.com/giveaways/search?

PageDescriptionExampleInfo
copy_min=#Multiple copiescopy_min=2Replace # with min. amount of copies
type=groupGrouptype=group
type=wishlistWishlisttype=wishlist
dlc=trueDLCdlc=true
type=recommendedRecommendedtype=recommended
type=newNewtype=new
q=#Search queryq=epic%20survivorsUse %20 instead of Space
page=#Allpage=12just needed if you want enter page # before page 1

Ignore Filter

Ignore games you dont like, you can combine RegEx and text filter.
Sample: /girls?/i,Hentai,/cute/i,/waifu/i,Dating.
If you dont know RegEx take a look at regex101.com, set flavor to ECMAScript (Javascript).

Text Sample:

The text Girls will ignore every game with "Girls" case sensitive

GametitleIgnore
Asura GirlsYes
GirLandno
Carnival and GirlsYes
Furry WoofNo
Street & GirlsYes
RegEx Sample:

The RegEx /Girls?/i will ignore every game with "Girl" or "Girls" case insensitive

GametitleIgnore
Asura GirlsYes
GirLandYes
Carnival and GirlsYes
Furry WoofNo
Street & GirlsYes

If you need , as filter char, you need to use RegEx as workaround, because , its used as internal seperator.
Use \u002C instead of , or \,, like /sex\u002C/i for games like "Sex, Please"

Tag summary

Content type

Image

Digest

sha256:fb0176a3f

Size

434.3 MB

Last updated

6 months ago

docker pull mega349/steamgifts-bot-dockerized