Skip to content
niico edited this page Jan 7, 2018 · 20 revisions

Configuration is done via a config.yaml file in the data directory next to the binary (or in the root folder if running from git).
There is a example file to start with.

Credentials (mandatory)

Define how the bot is connecting to the server. You don't have to but it's better to define a deviceId. Ideally the same as your phone, or you can generate one.
For example here: https://www.guidgenerator.com/ (choose uppercase).

credentials:
  login: Google
  deviceId: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA
  username: your google email address
  password: your password

Position (mandatory)

pos:
  lat: 48.867383
  lng: 2.313631

Google Maps

Needed if you ge this kind of error: You have exceeded your daily request quota for this API.
See Google Direction
Then:

gmapKey: abcdef_XYZWG

Running multiple bots

If you want to run multiple instances on the same machine and still use the UI, you need to configure a different port for each instance. The is done through the ui.port setting.

ui:
  enabled: true
  port: 8001

Then you can launch multiple instances by passing a config file through the command line:

node ./bin/app.js --config config.2.yaml

Behavior

This is default:

behavior:
  catch: true
  autorelease: false
  evolveperfect: false
  autoalliance: false
  incubate: true

you can for example do

behavior:
  autorelease: true
  evolveperfect: true
  autoalliance: RED

catch = false disable catching creature, only encounter is done
autorelease make your walker release a creature after catch if it's not better than the one you already have
evolveperfect (beta) automatically evolve perfect creatures
autoalliance can be RED or BLUE or left out to not choose an alliance
incubate if true, auto incubate eggs and roost eggs

Inventory auto-clean

You can define max item to keep per item type.
Available types: https://github.com/dracoapi/nodedracoapi/blob/d855ce9e674c2c9c46c7c39f5d1f3f3c1efe80f1/src/draco/enums.ts#L278-L310

inventory:
  MAGIC_BALL_SIMPLE:  40 # apprentice sphere
  MAGIC_BALL_NORMAL:  50 # master sphere
  POTION_HEAL_1: 10 #
  POTION_HEAL_2: 10
  POTION_RESURRECTION_1: 20 # resurecting potion
  RUNE_1: 10
  RUNE_2: 10
  RUNE_3: 10
  FOOD_MORE_DUST: 10 # donut
  FOOD_CALM_DOWN: 10 # Marshmallow
  FOOD_MORE_CANDIES: 10 # ice-cream

Routers

Routers define how the bot is finding directions to walk to.

router: 
  name: stops
  followroads: true

Zoom on how to configure routers

Logging

By default, logging is set to info, you can change it to debug with the log config:

log:
  level: debug

This will give you more info, like loot details.

Clone this wiki locally