Coder Social home page Coder Social logo

salien-bot's Introduction

Salien Bot

Salien Bot is a WIP bot for the Salien Minigame that came out for the Steam Summer Sale 2018.

I picked this up because it reminded me of a challenge in programming I had before. I won't be manipulating any state, just injecting mouse clicks and other button presses.

Also, a note: playing this game AT ALL will not net you better rewards! It's only the time you have been on the page. There's no need to waste computer resources. :)

Userscript Mode

Userscript Mode is a version of this bot that is ran as a script on top of your browser, while having a tab with the game open. It is generally easier to use.

Here are the steps to use:

It should be running now!

Tile Selection

The tile select code, in this version, focuses on leveling up to level 13 on hard tiles; after you hit level 13 it will try and target the highest progress tile.

Headless Mode

Headless Mode is a version of this game that is ran without a UI with the bot controlling it, in your command prompt / terminal / shell / etc.

Here are the steps to use:

npm install
notepad gettoken.json
  • Log into Steam
  • Open https://steamcommunity.com/saliengame/gettoken in browser with Steam logged in
  • Copy the entire contents of the page
  • Paste into notepad and save the file as gettoken.json.
  • (IMPORTANT) Immediately copy something else to avoid accidentally giving this out to someone else!
  • Save and exit
  • Back to command line:
node headless
  • (optional) See detailed bot options
node headless --help

It should be running now!

Tile Selection

This version, by default, will scour all available planets and get the highest EXP rewards from difficult tiles; if you don't want this, run the bot with:

node headless --care-for-planet

This will make the bot only use the last planet which you were on and allows you to select the planet for the bot to focus on by first logging onto the Steam website and selecting a planet.

Run the bot inside Docker

This bot can be ran inside a docker container in headless mode.

  1. Get the gettoken.json file.
  2. Run the docker image:
docker run -v /path/to/gettoken.json:/app/gettoken.json meepen/salien-bot:latest

You also can run an autoupdated stack with the examples/docker-compose-autoupdate/docker-compose.yml configuration file for docker-compose.

salien-bot's People

Contributors

meepen avatar tehdmitry avatar eod avatar callmenemo491 avatar tokkenno avatar ionbazan avatar andrewda avatar tbrx103 avatar tplk avatar dylandelobel avatar evanito avatar js41637 avatar mitchbarnett avatar nero2k avatar pewnypl avatar yggdrasil128 avatar vademon avatar kamsac avatar smaus avatar

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.