Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev merge to master, PR #4692

Merged
merged 62 commits into from
Aug 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7cd0e6f
Update Dockerfile
Aug 23, 2016
b319bfa
Update Dockerfile
Aug 23, 2016
2bdc428
Update Dockerfile
Aug 23, 2016
f198adb
Update Dockerfile
Aug 23, 2016
3fe5a50
Update Dockerfile
Aug 23, 2016
8ff150f
Update Dockerfile
Aug 23, 2016
b16987d
Update Dockerfile
Aug 23, 2016
ccfb448
Update Dockerfile
Aug 23, 2016
ce8dcf8
Update Dockerfile
Aug 23, 2016
dd3278c
Update Dockerfile
Aug 23, 2016
77c9e4d
Update Dockerfile
Aug 23, 2016
496898a
Update Dockerfile
Aug 23, 2016
84da2ce
Update Dockerfile
Aug 23, 2016
bf51dce
Update Dockerfile
Aug 23, 2016
2fb73cd
link to /config and /web for easier use
Aug 23, 2016
81f8216
Update Dockerfile
Aug 23, 2016
8fa7e8e
Update Dockerfile
Aug 23, 2016
de98ff9
Update Dockerfile
Aug 23, 2016
048e9d1
Update Dockerfile
Aug 23, 2016
b6ac6bf
Update Dockerfile
Aug 23, 2016
843c168
fixed indendts
Aug 23, 2016
9f502c1
Merge pull request #1 from PokemonGoF/dev
Aug 23, 2016
c3bbf5b
Update Dockerfile
Aug 23, 2016
659e7e0
woops wrong way around
Aug 23, 2016
014d5a6
Update Dockerfile
Aug 23, 2016
22ea68e
cache clean up
Aug 23, 2016
703ac87
Merge pull request #3 from PokemonGoF/dev
Aug 23, 2016
189e676
reverted some stuff
Aug 23, 2016
cda9b30
please my ocd hurts :)
Aug 23, 2016
c96ff3d
just keep it all in 1 file
Aug 23, 2016
a3bf84c
Update Dockerfile
Aug 23, 2016
ae6e43e
Update Dockerfile
Aug 23, 2016
c0c34cf
Fetch the repo directly from the github using ADD
th3w4y Aug 23, 2016
e1c2a27
Merge pull request #4 from th3w4y/dev
Aug 23, 2016
cdd9227
Merge pull request #5 from PokemonGoF/dev
Aug 24, 2016
a8eb98b
this should be better
Aug 24, 2016
ed18e69
Update Dockerfile
Aug 24, 2016
9b7f554
we don't need wget we can use ADD url
th3w4y Aug 24, 2016
36e66dd
Added social hunter, currently break the map thing, need configuratio…
solderzzc Aug 24, 2016
95821bb
Merge pull request #6 from th3w4y/patch-1
Aug 24, 2016
97dc99d
style(map-chat): format console.log
geminiyellow Aug 24, 2016
2158320
added logic to support both master and dev branch or different fork
th3w4y Aug 24, 2016
015f3a8
Update Dockerfile
th3w4y Aug 24, 2016
74e67ed
Added label so we can ask check what version was a container build with
th3w4y Aug 24, 2016
e228f6f
Merge pull request #7 from th3w4y/patch-1
Aug 24, 2016
6910373
Update Dockerfile
Aug 24, 2016
f9f6a3b
Added RandomAlivePause task
cmezh Aug 24, 2016
bce3bba
Rewrited _should_pause_now func
cmezh Aug 24, 2016
b41abf3
Added noise
cmezh Aug 24, 2016
671b5c3
Added examples
cmezh Aug 24, 2016
8832b16
Update Dockerfile
Aug 24, 2016
88b6541
A little correction
cmezh Aug 24, 2016
864786f
Merge pull request #4664 from geminiyellow/style-map-chat-console
solderzzc Aug 24, 2016
bda706a
Merge pull request #4618 from nivong/dev
solderzzc Aug 24, 2016
31f528f
Fix error
mjmadsen Aug 24, 2016
b449384
Fixed parameters
mjmadsen Aug 24, 2016
e92dc23
Merge pull request #4672 from cmezh/alive_pause
solderzzc Aug 24, 2016
2b47a64
Merge pull request #4680 from mjmadsen/mjmadsen-patch-1
solderzzc Aug 24, 2016
0973102
Hotfix for #4675 (#4684)
mjmadsen Aug 24, 2016
38b4a09
Add disable/enable to RandomAlivePause (#4685)
mjmadsen Aug 24, 2016
5b2b08c
Merge remote-tracking branch 'origin/master' into dev
solderzzc Aug 24, 2016
3ebad0b
Added contirbution part over write by dev merge to master.
solderzzc Aug 24, 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
44 changes: 36 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
FROM python:2.7
# To build a docker container for the "master" branch (this is the default) execute:
#
# docker build --build-arg BUILD_BRANCH=master .
# (or)
# docker build .
#
# To build a docker container for the "dev" branch execute:
#
# docker build --build-arg BUILD_BRANCH=dev .
#
# You can also build from different fork and specify a particular commit as the branch
#
# docker build --build-arg BUILD_REPO=YourFork/PokemonGo-Bot --build-arg BUILD_BRANCH=6a4580f .

FROM python:2.7.12-alpine

RUN apk add --update --no-cache alpine-sdk git

ARG BUILD_BRANCH
ENV BUILD_BRANCH ${BUILD_BRANCH:-master}

ARG BUILD_REPO
ENV BUILD_REPO ${BUILD_REPO:-PokemonGoF/PokemonGo-Bot}

LABEL build_repo=$BUILD_REPO build_branch=$BUILD_BRANCH

ADD https://github.com/$BUILD_REPO/archive/$BUILD_BRANCH.tar.gz .
RUN tar -zxvf $BUILD_BRANCH.tar.gz && mv PokemonGo-Bot-* /usr/src/app && rm $BUILD_BRANCH.tar.gz

WORKDIR /usr/src/app
VOLUME ["/usr/src/app/configs", "/usr/src/app/web"]

ARG timezone=Etc/UTC
RUN echo $timezone > /etc/timezone \
&& ln -sfn /usr/share/zoneinfo/$timezone /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN cd /tmp && wget "http://pgoapi.com/pgoencrypt.tar.gz" \
&& tar zxvf pgoencrypt.tar.gz \
#setup the bot
ADD http://pgoapi.com/pgoencrypt.tar.gz /tmp/
RUN cd /tmp && tar zxvf pgoencrypt.tar.gz \
&& cd pgoencrypt/src \
&& make \
&& cp libencrypt.so /usr/src/app/encrypt.so \
Expand All @@ -18,9 +44,11 @@ RUN cd /tmp && wget "http://pgoapi.com/pgoencrypt.tar.gz" \

ENV LD_LIBRARY_PATH /usr/src/app

COPY requirements.txt /usr/src/app/
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install --no-cache-dir -r requirements.txt

COPY . /usr/src/app
#remove unused stuff
RUN apk del alpine-sdk\
&& rm -rf /var/cache/apk/*

ENTRYPOINT ["python", "pokecli.py"]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ If you'd like to make your own changes, make sure you follow the pull request te
- [x] Adjust delay between Pokemon capture & Transfer as per configuration
- [x] Hatch eggs
- [x] Incubate eggs
- [x] Crowd Sourced Map Prototype
- [ ] [Standalone Desktop Application] (https://github.com/PokemonGoF/PokemonGo-Bot-Desktop)
- [ ] Use candy
- [x] Crowd Sourced Map Prototype

## Gym Battles
This bot takes a strong stance against automating gym battles. Botting gyms will have a negative effect on most players and thus the game as a whole. We will thus never accept contributions or changes containing code specific for gym battles.
Expand All @@ -67,7 +67,6 @@ If you do not want any data to be gathered, you can turn off this feature by set

## Help Needed on [Desktop Version](https://github.com/PokemonGoF/PokemonGo-Bot-Desktop)


## Credits
- [tejado](https://github.com/tejado) many thanks for the API
- [U6 Group](http://pgoapi.com) for the U6
Expand All @@ -77,5 +76,7 @@ If you do not want any data to be gathered, you can turn off this feature by set
- [AHAAAAAAA](https://github.com/AHAAAAAAA/PokemonGo-Map) for parts of the s2sphere stuff
- [Breeze ro](https://github.com/BreezeRo) for some of the MQTT/Map stuff

## [Contributors](https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/CONTRIBUTORS.md)


[![Analytics](https://ga-beacon.appspot.com/UA-81468120-1/welcome-page-master)](https://github.com/igrigorik/ga-beacon)
11 changes: 11 additions & 0 deletions configs/config.json.cluster.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
11 changes: 11 additions & 0 deletions configs/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
11 changes: 11 additions & 0 deletions configs/config.json.map.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
11 changes: 11 additions & 0 deletions configs/config.json.optimizer.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
11 changes: 11 additions & 0 deletions configs/config.json.path.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
11 changes: 11 additions & 0 deletions configs/config.json.pokemon.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"heartbeat_threshold": 10,
"enable_social": true,
"tasks": [
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
Expand Down
1 change: 1 addition & 0 deletions docs/configuration_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ This task will fetch current pokemon spawns from /raw_data of an PokemonGo-Map i
- `priority` - Will move to the pokemon with the highest priority assigned (tie breaking by distance)
* `prioritize_vips` - Will prioritize vips in distance and priority mode above all normal pokemon if set to true
* `min_time` - Minimum time the pokemon has to be available before despawn
* `min_ball` - Minimum amount of balls required to run task
* `max_distance` - Maximum distance the pokemon is allowed to be when walking, ignored when sniping
* `snipe`:
- `True` - Will teleport to target pokemon, encounter it, teleport back then catch it
Expand Down
20 changes: 10 additions & 10 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#Install the bot
# Install the bot
## Table of Contents
- [Linux or Mac Automatic Installation](#linuxmac)
- [Windows Automatic Installation](#windows)
- [Docker Automatic Installation](#docker)


#Linux/Mac
# Linux/Mac
### Requirements (click each one for install guide)
- [Python 2.7.x](http://docs.python-guide.org/en/latest/starting/installation/)
- [pip](https://pip.pypa.io/en/stable/installing/)
Expand All @@ -28,12 +28,12 @@

for manual installation please refer to [here](https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/docs/manual_installation.md)

#Windows
# Windows
We do recommend Windows users to use [Docker](#docker) this will work much easier and smoother (also saver)

##Requirements
## Requirements

###Easy Installation
### Easy Installation
1. Download [PokemonGo-Bot-Install.bat](https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/windows_bat/PokemonGo-Bot-Install.bat)
2. Download `encrypt.so` and `encrypt.dll` or `encrypt_64.dll` to the same folder of the `PokemonGo-Bot-Install.bat`.
3. Run `PokemonGo-Bot-install.bat`.
Expand All @@ -45,9 +45,9 @@ This will start the bot and the web interface.
3. Run `PokemonGo-Bot-Start.bat`
This will check for an update and will start the bot afterwards.

#Docker
# Docker

###Easy installation
### Easy installation
Start by downloading for your platform:
- [Mac](https://www.docker.com/products/docker#/mac)
- [Windows](https://www.docker.com/products/docker#/windows)
Expand Down Expand Up @@ -81,7 +81,7 @@ docker run --name=bot1-pokegoweb --rm -it --volumes-from bot1-pokego -p 8000:800
```
The OpenPoGoWeb will be served on `http://<your host>:8000`

###Remarks for Windows
### Remarks for Windows

Even if the previous command are valid, you will not be able to visualize the web view under Windows.
To visualize the web view, execute instead the following commands (*make sure you are in the root folder and that your docker images is built*):
Expand Down Expand Up @@ -109,7 +109,7 @@ Then, with your containers running and your host address, you can access the web
`http://<your host address>:8000 (eg http://192.168.99.100:8000)`


####Errors
#### Errors

- An error occurred trying to connect:

Expand All @@ -124,7 +124,7 @@ docker-machine env default

Make sure that the name of the image is correct.

###Using Docker compose
### Using Docker compose

if docker-compose [installed](https://docs.docker.com/compose/install/) you can alternatively run the PokemonGo-Bot ecosystem with one simple command:
(by using the docker-compose.yml configuration in this repo)
Expand Down
Loading