Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c4d589a
Reverting change to travis linter
elicwhite Jul 25, 2016
586a0dc
big refactor to Stepper class (#737)
douglascamata Jul 25, 2016
bfd21e6
remove file exist checks to fix webview, remove gmaps api key write t…
SteffanLong Jul 25, 2016
3ef918f
Lucky Egg - Evolve All (#742)
codybaldwin Jul 25, 2016
335a0aa
Now bot can use berries. Yeah! + Fix #660, #666 (#655)
earthchie Jul 25, 2016
0f178f3
Taking speed into account (#762)
elicwhite Jul 25, 2016
97b01b4
re-add missing webview submodule (#764)
SteffanLong Jul 25, 2016
149a357
improved stepper that walks using Google Directions API (#721)
th3w4y Jul 25, 2016
6d82f70
Fixing ITEM_FILTER and Attribute Error: no position Issues (#638)
dmateusp Jul 25, 2016
debbe1d
Update README.md
solderzzc Jul 25, 2016
d8fc4ee
Fixed sleep to use floats again (#767)
tstumm Jul 25, 2016
b337476
pylin now exits passed or failed correctly
fredrik-hellmangroup Jul 25, 2016
9f012c9
Fixing teleporting to poke stops (#775)
elicwhite Jul 25, 2016
fb2cca3
Removing extra arguments
elicwhite Jul 25, 2016
c13a400
Multiple Config File Support (#771)
ColeGreenlee Jul 25, 2016
8e42397
update readme
fredrik-hellmangroup Jul 25, 2016
b8606bc
Update readme
fredrik-hellmangroup Jul 25, 2016
1312ca4
Re-loggin in if session token is close to expiring (#735)
MikeDX Jul 25, 2016
d18f30c
fixed typo error
eggins Jul 25, 2016
bffa9de
Making logs easier to read and smaller - removing unnecessary date
eggins Jul 25, 2016
2a15c03
Oopses - small mistake!
eggins Jul 25, 2016
74bbe3f
fixes bug in login method (closes #794)
douglascamata Jul 25, 2016
64ceff5
fixed a coordinate error
douglascamata Jul 25, 2016
844ae69
fixed a coordinate error
douglascamata Jul 25, 2016
2006abd
Fixes SpiralNavigation skipping waypoints (#807)
tstumm Jul 25, 2016
a035304
Fixes stationary walks in SpiralNavigation (#813)
tstumm Jul 25, 2016
2d32a81
Fix/web location file (#800)
DevScarabyte Jul 25, 2016
4b37180
Massive log updates to re-implement the CLI output. Much cleaner logg…
eggins Jul 25, 2016
fa9df3b
Fixing the Desiigner - Panda reference during Debug.....
eggins Jul 25, 2016
a8f33ab
CLEAN README UPDATES - STILL WORK IN PROGRESS
eggins Jul 25, 2016
236fdc0
Readme updated. Contributors file created.
eggins Jul 25, 2016
33a0ad6
merge and refactor config files (#818)
SteffanLong Jul 25, 2016
eaef8fc
re-order player info logging at login
eggins Jul 25, 2016
71f9f68
added web submodule
solderzzc Jul 25, 2016
5b74e19
Merge branch 'dev' of https://github.com/PokemonGoF/PokemonGo-Bot int…
solderzzc Jul 25, 2016
26be85d
Submodules should be fetched over https
fredrik-hellmangroup Jul 25, 2016
3e6b98d
cleaned out incomplete entry in submodule
fredrik-hellmangroup Jul 25, 2016
ee97b2c
Updated readme and example file with release parameters (#857)
fredrik-hellmangroup Jul 25, 2016
234dfec
Updated example configs
fredrik-hellmangroup Jul 25, 2016
2c9fd7d
formating missed in last commit
fredrik-hellmangroup Jul 25, 2016
9c89414
formating pokemons.example file
fredrik-hellmangroup Jul 25, 2016
a5544d3
Updated ignore file (#828)
fredrik-hellmangroup Jul 25, 2016
ff665d6
Fixed tab/space issue and optimized imports (#860)
afrase Jul 25, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ var/
.pydevproject
.settings/


# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down Expand Up @@ -98,19 +97,13 @@ ENV/
.idea/

# Personal load details
config.json
src/
info.json
inventory.json
pokedex.json
web/catchable.json
web/catchable-*.json
web/location-*.json
web/inventory-*.json
web/location.json
web/userdata.js
web/
data/last-location*.json
data/catch-ignore.yml
release_config.json
web/userdata.js
location.json

#Multiple config
configs/*
!configs/config.json.example
!configs/release_config.json.example
!configs/config.json.pokemons.example
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "origin"]
[submodule "web"]
path = web
url = https://github.com/OpenPoGo/OpenPoGoWeb.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ addons:
install:
- pip install -r requirements.txt
- pip install pylint
script: "python travis-pythoncheck.py"
script: "python pylint-recursive.py"
33 changes: 33 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Contributors
* eggins [first pull request]
* crack00r
* ethervoid
* Bashin
* tstumm
* TheGoldenXY
* Reaver01
* rarshonsky
* earthchie
* haykuro
* 05-032
* sinistance
* CapCap
* mzupan
* gnekic(GeXx)
* Shoh
* luizperes
* brantje
* VirtualSatai
* dmateusp
* jtdroste
* msoedov
* Grace
* Calcyfer
* asaf400
* guyz
* DavidK1m
* budi-khoirudin
* riberod07
* th3w4y
* Leaklessgfy
* steffwiz
191 changes: 78 additions & 113 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,51 @@
<p align="center">
<a href="">
<img alt="Logo" src="https://www.brooklinelibrary.org/wp-content/uploads/2016/07/2000px-Pok%C3%A9_Ball.svg_-1.png" width="100">
</a>
</p>
# PokemonGo-Bot
PokemonGo bot is a project created by the [PokemonGoF](https://github.com/PokemonGoF) team.
The project is currently setup in two different branches. `dev` and `master`.

We use [Slack](https://slack.com) as a web chat. [Click here to join the chat!](https://pokemongo-bot.herokuapp.com)

## Features
- [x] GPS Location configuration
- [x] Search Pokestops
- [x] Catch Pokemon
- [x] Determine which pokeball to use (uses Razz Berry if the catch percentage is low!)
- [x] Exchange Pokemon as per configuration
- [x] Evolve Pokemon as per configuration
- [x] Auto switch mode (Inventory Checks - switches between catch/farming items)
- [x] Limit the step to farm specific area for pokestops
- [x] Rudimentary IV Functionality filter
- [x] Ignore certain pokemon filter
- [ ] Standalone Desktop Application
- [ ] Hatch eggs
- [ ] Incubate eggs
- [ ] Use candy
- [ ] Fight Gym

## Wiki
All information on [Getting Started](https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Getting-Started) is available in the [Wiki](https://github.com/PokemonGoF/PokemonGo-Bot/wiki/)!
To ensure that all updates are documented - [@eggins](https://github.com/eggins) will keep the Wiki updated with the latest information on installing, updating and configuring the bot.

## Credits
- [tejado](https://github.com/tejado) many thanks for the API
- [Mila432](https://github.com/Mila432/Pokemon_Go_API) for the login secrets
- [elliottcarlson](https://github.com/elliottcarlson) for the Google Auth PR
- [AeonLucid](https://github.com/AeonLucid/POGOProtos) for improved protos
- [AHAAAAAAA](https://github.com/AHAAAAAAA/PokemonGo-Map) for parts of the s2sphere stuff


## Donation

Bitcoin Address: 1PJMCx9NNQRasQYaa4MMff9yyNFffhHgLu

<p align="center">
<a href="https://pokemongo-bot.herokuapp.com/"><img alt="Slack" src="https://pokemongo-bot.herokuapp.com/badge.svg"></a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WQUXDC54W6EVY"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a>
</p>

# PokemonGo-Bot
The Pokemon Go Bot, baking with community.

## Project Chat
We use [Slack](https://slack.com) as a web chat. [Click here to join the chat!](https://pokemongo-bot.herokuapp.com)
## Breaking Changes
You need modify config.json (config.json.example for example) then pokecli.py --config config.json
Please clean up your old clone if you have issue, and following the [install instruction](https://github.com/PokemonGoF/PokemonGo-Bot#installation).

## About dev/master Branch
Dev branch has most up to date feature and even everyone handle the part well, still, will have broken changes. Your test contribute and PR for fix are warm welcome.
Master branch is the stable branch.
No PR on master branch to keep things easier.

## OLD README BELOW. STILL UPDATING THIS.

## Table of Contents
- [Project Chat](#project-chat)
- [Features](#features)
- [TODO List](#todo-list)
- __Installation__
- [Requirements](#requirements)
- [Mac](#installation-mac)
Expand All @@ -37,33 +58,6 @@ No PR on master branch to keep things easier.
- [Credits](#credits)
- [Donation](#donation)

## Features
* Search Fort (Spin Pokestop)
* Catch Pokemon
* Release low cp pokemon
* Walking as you
* Limit the step to farm specific area for pokestops
* Use the ball you have to catch, don't if you don't have
* Rudimentary IV Functionality filter
* Auto switch mode(Full of item then catch, no ball useable then farm)
* Ignore certain pokemon filter
* Use superior ball types when necessary
* When out of normal pokeballs, use the next type of ball unless there are less than 10 of that type, in which case switch to farm mode
* Drop items when bag is full (In Testing, Document contribute needed)
* Pokemon catch filter (In Testing, Document contribute needed)
* Google Map API key setup (Readme update needed)
* Show all objects on map (In Testing)
* Evolve pokemons (Code in, Need input, In Testing)

## TODO List

- [ ] Standalone Desktop APP
- [ ] Pokemon transfer filter ?? This already done, right?
- [ ] Hatch eggs
- [ ] Incubate eggs
- [ ] Use candy
- [ ] Fight Gym

## Installation

### Requirements (click each one for install guide)
Expand All @@ -82,10 +76,10 @@ No PR on master branch to keep things easier.
- Linux: `apt-get install python-protobuf`

### Note on branch
Please keep in mind that master is not always up to date whereas 'dev' is. In the installation note below change `master` to `dev` if you want to get the latest version.
Please keep in mind that master is not always up-to-date whereas 'dev' is. In the installation note below change `master` to `dev` if you want to get and use the latest version.

### Installation Linux
(change master to dev for the newer version)
(change master to dev for the latest version)

```
$ git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot
Expand All @@ -96,7 +90,7 @@ $ git submodule update
```

### Installation Mac
(change master to dev for the newer version)
(change master to dev for the latest version)

```
$ git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot
Expand All @@ -109,7 +103,7 @@ $ git submodule update
```

### Installation Windows
(change master to dev for the newer version)
(change master to dev for the latest version)

On Windows, you will need to install PyYaml through the installer and not through requirements.txt.

Expand All @@ -128,7 +122,7 @@ $ pip install PyYAML-3.11-cp27-cp27m-win32.whl
// (replace PyYAML-3.11-cp27-cp27m-win32.whl with PyYAML-3.11-cp27-cp27m-win_amd64.whl
```

After this, just do :
After this, just do:

```
$ git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot
Expand Down Expand Up @@ -164,20 +158,20 @@ This project uses Google Maps. There's one map coupled with the project, but as
6. After the code done, will update here how to replace.

### Python possible bug
If you encounter problems with the module `ssl` and it function `_create_unverified_context`. Just comment it. (Solution available in Python 2.7.11)
To do it follow instruction below :
If you encounter problems with the module `ssl` and it's function `_create_unverified_context`, just comment it. (Solution available in Python 2.7.11)
In order to comment out the function and the module, please follow the instructions below:
- edit `pokecli.py`
- put `#` before `if` (line 43) and `ssl` (line 44)
- save it

Please keep in mind that this fix is necessary only if your python version don't have the `_create_unverified_context` argument in ssl module.
Please keep in mind that this fix is only necessary if your python version don't have the `_create_unverified_context` argument in the ssl module.

## Update
To update your project do: `git pull` in the project folder

## Usage (up to date)
1/ copy `config.json.example` to `config.json` and `release_config.json.example` to `release_config.json`.
2/ Edit `config.json` and replace `auth_service`, `username`, `password`, `location` and `gmapkey` with your parameters (others keys are optional, check `Advance Configuration` below)
## Usage (up-to-date)
1/ copy `config.json.example` to `config.json` and `release_config.json.example` to `release_config.json`.
2/ Edit `config.json` and replace `auth_service`, `username`, `password`, `location` and `gmapkey` with your parameters (other keys are optional, check `Advance Configuration` below)

## Advance Configuration
- `max_steps` :
Expand All @@ -189,7 +183,27 @@ To update your project do: `git pull` in the project folder
- `location_cache` :
- `distance_unit` :
- `item_filter` :
- `evolve_all` : Set to true to evolve pokemon if possible
- `evolve_all` : Set to true to evolve pokemons if possible

## Catch Configuration
Default configuration will capture all Pokemon.
```"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"}```
You can override the global configuration with Pokemon-specific options, such as:
```"Pidgey": {"catch_above_cp": 0, "catch_above_iv": 0.8", "logic": "and"}```
to only capture Pidgey with a good roll.
Additionally, you can specify always_capture and never_capture flags. For example:
```"Pidgey": {"never_capture": true}```
will stop catching Pidgey entirely.

## Release Configuration
Default configuration will not release any Pokemon.
```"any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"}```
You can override the global configuration with Pokemon-specific options, such as:
```"Pidgey": {"release_below_cp": 0, "release_below_iv": 0.8", "logic": "or"}```
to only release Pidgey with bad rolls.
Additionally, you can specify always_release and never_release flags. For example:
```"Pidgey": {"always_release": true}```
will release all Pidgey caught.

### Evolve All Configuration
By setting the `evolve_all` attribute in config.json, you can instruct the bot to automatically
Expand Down Expand Up @@ -238,7 +252,7 @@ sudo apt-get install nginx

#### 2. Check the webserver
Check if the webserver is running by using your browser and entering the IP address of your local machine/server.
On a local machine this would be http://127.0.0.1. On AWS this is your public DNS if you havent configured an elastic IP.
On a local machine this would be http://127.0.0.1. On AWS this is your public DNS if you haven't configured an elastic IP.

#### 3. Change Base Directory of the Webserver
```
Expand All @@ -254,7 +268,7 @@ Comment out following line: ```root /var/www/html;``` and change it to the web f
### What's IV ?
Here's the [introduction](http://bulbapedia.bulbagarden.net/wiki/Individual_values)

### Does it run automatally?
### Does it run automatically?
Not yet, still need a trainer to train the script param. But we are very close to.
### Set GEO Location
It works, use -l "xx.yyyy,zz.ttttt" to set lat long for location. -- diordache
Expand All @@ -264,7 +278,7 @@ Try to generate an [app password](!https://support.google.com/accounts/answer/18
```
-p "<your-app-password>"
```
This error is mostly occurs for those who using 2 factor authentication but either way for the purpose of security would be nice to have a separate password for the bot app.
This error mostly occurs for those who are using 2 factor authentication, but either way, for the purpose of security it would be nice to have a separate password for the bot app.


### FLEE
Expand All @@ -282,7 +296,7 @@ Create the following filter
```
./data/catch-ignore.yml
```
Its a yaml file with a list of names so make it look like
It's a yaml file with a list of names so make it look like
```
ignore:
- Pidgey
Expand All @@ -305,52 +319,3 @@ If using multiple usernames format like this:
```var users = ["username1","username2"];```

---------
## Contributors (Don't forget add yours here when you create PR)
* eggins -- The first pull request :)
* crack00r
* ethervoid
* Bashin
* tstumm
* TheGoldenXY
* Reaver01
* rarshonsky
* earthchie
* haykuro
* 05-032
* sinistance
* CapCap
* mzupan
* gnekic(GeXx)
* Shoh
* luizperes
* brantje
* VirtualSatai
* dmateusp
* jtdroste
* msoedov
* Grace
* Calcyfer
* asaf400
* guyz
* DavidK1m
* budi-khoirudin
* riberod07
* th3w4y
* Leaklessgfy

-------
## Credits
- [tejado](https://github.com/tejado) many thanks for the API
- [Mila432](https://github.com/Mila432/Pokemon_Go_API) for the login secrets
- [elliottcarlson](https://github.com/elliottcarlson) for the Google Auth PR
- [AeonLucid](https://github.com/AeonLucid/POGOProtos) for improved protos
- [AHAAAAAAA](https://github.com/AHAAAAAAA/PokemonGo-Map) for parts of the s2sphere stuff


## Donation

Bitcoin Address: 1PJMCx9NNQRasQYaa4MMff9yyNFffhHgLu

<p align="center">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WQUXDC54W6EVY"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a>
</p>
17 changes: 0 additions & 17 deletions config.json.example

This file was deleted.

Loading