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 #4952

Merged
merged 46 commits into from
Aug 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6c9f865
Expand simple logging options (#4832)
Gobberwart Aug 28, 2016
2832a37
Changed ) to } (#4845)
LuckyMe4Evers Aug 28, 2016
d896a80
fix incubator logic (#4848)
rawgni Aug 28, 2016
af985e8
corrected logic to respect snipe = true
Aug 28, 2016
6acdc53
Update configuration_files.md (#4854)
askovpen Aug 28, 2016
5a1e246
corrected logic to respect snipe = true (#4855)
DBa2016 Aug 28, 2016
4dd28e3
Revert "corrected logic to respect snipe = true" (#4857)
mjmadsen Aug 28, 2016
f1fe942
dont forget to update the docs when adding config changes... (#4856)
Aug 28, 2016
f6775cc
please keep this as is (#4859)
Aug 28, 2016
1b90f3f
Clarify Max_distance for Sniping (#4858)
Jasperrr91 Aug 28, 2016
a01f4dd
- debug improvements for MoveToMap (#4860)
DBa2016 Aug 28, 2016
18d7589
Fixes catch rates. (#4863)
Jasperrr91 Aug 28, 2016
007f02a
Merge branch 'master' into dev
mjmadsen Aug 28, 2016
ec35ab2
Merge branch 'dev' of https://github.com/DBa2016/PokemonGo-Bot into dev
DBa2016 Aug 28, 2016
e43f8f9
Implemented more granularity in the "alert_catch" parameter for Telegram
DBa2016 Aug 28, 2016
a388c10
Merge pull request #4874 from DBa2016/dev
Gobberwart Aug 29, 2016
dc31c8d
Add exceptions to json file read/writes (#4877)
Gobberwart Aug 29, 2016
3ebabfb
Incubate eggs fix (#4881)
DeXtroTip Aug 29, 2016
6da3d13
Merge branch 'master' into dev
mjmadsen Aug 29, 2016
de572e2
add some sanitycheck (#4891)
rawgni Aug 29, 2016
9c6cec4
execute setup.sh -u if there is a need to (#4870)
rawgni Aug 29, 2016
b81aaeb
Add PokemonGo bot version to docker image (#4886)
walkerlee Aug 29, 2016
431a628
Call level_up_rewards on exp changes/Some pep-8 (#4896)
sohje Aug 29, 2016
5eb9fb2
Improvements to evolve + config md updates (#4900)
mjmadsen Aug 29, 2016
a0812c1
2000 pokestop in 24h limit (#4906)
askovpen Aug 30, 2016
48e507b
Update readme.md + Improve FollowPath & SleepSchedule messages (#4911)
alexyaoyang Aug 30, 2016
734a0a3
Reduce API calls (#4916)
Gobberwart Aug 30, 2016
d7cf555
Swap auth and config position (#4909)
alexyaoyang Aug 30, 2016
94c4343
add telegram check messages interval (#4919)
askovpen Aug 30, 2016
d56ffb5
Add documentation (#4921)
anakin5 Aug 30, 2016
56a0d11
documented docker for the auth.json use case (#4922)
th3w4y Aug 30, 2016
daca13f
Fix for #4718 (#4924)
mjmadsen Aug 30, 2016
3323a75
Fix filter (#4925)
mjmadsen Aug 30, 2016
85545e5
improve docker pull speed (#4899)
walkerlee Aug 30, 2016
9e81c6e
Update inventory.py (#4928)
sohje Aug 30, 2016
5858a02
fixed a runtime error caused by incorrect imports (#4931)
DBa2016 Aug 30, 2016
47e1ddd
Catch exception telegram.error.NetworkError.
solderzzc Aug 30, 2016
6de967a
Merge branch 'dev' into fix_exception_tbot_pylint
solderzzc Aug 30, 2016
1d68ec2
Merge pull request #4940 from PokemonGoF/fix_exception_tbot_pylint
solderzzc Aug 30, 2016
2ea7e3e
More config parameters for MoveToMap (#4937)
DBa2016 Aug 30, 2016
8c2d0a5
Add experimental pokemon upgrade (power-up) logic (#4938)
anakin5 Aug 30, 2016
28450ce
Set default value of skip_rounds to 30 since many people just use the…
solderzzc Aug 30, 2016
8c6a578
Add exception handling for cached forts (#4943)
mjmadsen Aug 30, 2016
1d9c94c
update web repo to have better web ui contribute.
solderzzc Aug 30, 2016
c3a521c
Merge branch 'dev' of https://github.com/PokemonGoF/PokemonGo-Bot int…
solderzzc Aug 30, 2016
8c74150
Merge branch 'master' into dev
solderzzc Aug 30, 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ data/map-caught-*.json
data/recent-forts-*.json
data/caught-*.json
data/deviceid-*.txt
data/mqtt_client_id.*
user_web_catchable
version

# Multiple config
configs/*
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "web"]
path = web
url = https://github.com/OpenPoGo/OpenPoGoWeb.git
url = https://github.com/PokemonGoF/PokemonGo-Web
36 changes: 18 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@ LABEL build_repo=$BUILD_REPO build_branch=$BUILD_BRANCH
WORKDIR /usr/src/app
VOLUME ["/usr/src/app/configs", "/usr/src/app/web"]

ADD https://raw.githubusercontent.com/$BUILD_REPO/$BUILD_BRANCH/requirements.txt .
RUN apk -U --no-cache add python py-pip \
&& apk --no-cache add --virtual .build-dependencies python-dev gcc make musl-dev git tzdata tar \
&& rm -rf /var/cache/apk/* \
&& find / -name '*.pyc' -o -name '*.pyo' | xargs -rn1 rm -f

ADD http://pgoapi.com/pgoencrypt.tar.gz /tmp/pgoencrypt.tar.gz
ADD https://raw.githubusercontent.com/$BUILD_REPO/$BUILD_BRANCH/requirements.txt .
RUN apk -U --no-cache add --virtual .build-dependencies python-dev gcc make musl-dev git tzdata \
&& cp -fa /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone \
&& tar zxf /tmp/pgoencrypt.tar.gz -C /tmp \
&& make -C /tmp/pgoencrypt/src \
&& cp /tmp/pgoencrypt/src/libencrypt.so /usr/src/app/encrypt.so \
&& ln -s locale.h /usr/include/xlocale.h \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del .build-dependencies \
&& rm -rf /var/cache/apk/* /usr/include/xlocale.h \
&& find / -name '*.pyc' -o -name '*.pyo' -exec rm -f {} \;

ADD http://pgoapi.com/pgoencrypt.tar.gz /tmp/pgoencrypt.tar.gz
RUN apk --no-cache add --virtual .pgoencrypt-dependencies gcc make musl-dev tar \
&& cat /tmp/pgoencrypt.tar.gz | tar xzf - -C /tmp \
&& make -C /tmp/pgoencrypt/src \
&& cp /tmp/pgoencrypt/src/libencrypt.so /usr/src/app/encrypt.so \
&& apk del .pgoencrypt-dependencies \
&& rm -rf /var/cache/apk/* /tmp/pgoencrypt /tmp/pgoencrypt.tar.gz

ADD https://github.com/$BUILD_REPO/archive/$BUILD_BRANCH.tar.gz /tmp
RUN apk -U --no-cache add --virtual .tar-deps tar \
&& cat /tmp/$BUILD_BRANCH.tar.gz | tar -zxf - --strip-components=1 -C /usr/src/app \
&& apk del .tar-deps \
&& rm /tmp/$BUILD_BRANCH.tar.gz
&& rm -rf /var/cache/apk/* /tmp/pgoencrypt* /usr/include/xlocale.h \
&& find / -name '*.pyc' -o -name '*.pyo' | xargs -rn1 rm -f

ADD https://api.github.com/repos/$BUILD_REPO/commits/$BUILD_BRANCH /tmp/pgobot-version
RUN apk -U --no-cache add --virtual .pgobot-dependencies wget ca-certificates tar jq \
&& wget -q -O- https://github.com/$BUILD_REPO/archive/$BUILD_BRANCH.tar.gz | tar zxf - --strip-components=1 -C /usr/src/app \
&& jq -r .sha /tmp/pgobot-version > /usr/src/app/version \
&& apk del .pgobot-dependencies \
&& rm -rf /var/cache/apk/* /tmp/pgobot-version

ENTRYPOINT ["python", "pokecli.py"]
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# PokemonGo-Bot
PokemonGo bot is a project created by the [PokemonGoF](https://github.com/PokemonGoF) team.
[PokemonGo-Bot](https://github.com/PokemonGoF/PokemonGo-Bot) is a project created by the [PokemonGoF](https://github.com/PokemonGoF) team.

## Table of Contents
- [Installation](https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/docs/installation.md)
- [Documentation](https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/docs/)
- [Support](#support)
- [help](#configuration-issueshelp)
- [bugs](#bugs--issues)
- [Feature request](#feature-requests)
- [Help](#configuration-issueshelp)
- [Bugs](#bugs--issues)
- [Feature Requests](#feature-requests)
- [Pull Requests](#pull-requests)
- [Features](#features)
- [Credits](#credits)

The project is currently setup in two main branches.
- `dev` also known as `beta` - This is where the latest features are, but you may also experience some issues with stability/crashes
- `master` also known as `stable` - The bot 'should' be stable on this branch, and is generally well tested
The project is currently setup in two main branches:
- `dev` also known as `beta` - This is where the latest features are, but you may also experience some issues with stability/crashes.
- `master` also known as `stable` - The bot 'should' be stable on this branch, and is generally well tested.

## Support
### Configuration issues/help
If you need any help please don't create an issue as we have a great community on Slack. You can count on the community in [#help](https://pokemongo-bot.slack.com/messages/help/) channel.
- [Click here to signup (first time only)](https://pokemongo-bot.herokuapp.com)
- [Join if you're already a member](https://pokemongo-bot.slack.com/messages/general/).
- [Click here to signup (first time only)](https://pokemongo-bot.herokuapp.com)
- [Join here if you're already a member](https://pokemongo-bot.slack.com/messages/general/)

###[Bugs / Issues](https://github.com/PokemonGoF/PokemonGo-Bot/issues?q=is%3Aissue+sort%3Aupdated-desc)
If you discover a bug in the bot, please [search our issue tracker](https://github.com/PokemonGoF/PokemonGo-Bot/issues?q=is%3Aissue+sort%3Aupdated-desc) first. If it hasn't been reported, please [create a new issue](https://github.com/PokemonGoF/PokemonGo-Bot/issues/new) and ensure you follow the template guide so that our team can assist you as quickly as possible.
Expand Down Expand Up @@ -51,10 +51,10 @@ If you'd like to make your own changes, make sure you follow the pull request te
- [ ] Use candy

## 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.
[PokemonGo-Bot](https://github.com/PokemonGoF/PokemonGo-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.

## Analytics
This bot is very popular and has a vibrant community. Because of that, it has become very difficult for us to know how the bot is used and what errors people hit. By capturing small amounts of data, we can prioritize our work better such as fixing errors that happen to a large percentage of our user base, not just a vocal minority.
[PokemonGo-Bot](https://github.com/PokemonGoF/PokemonGo-Bot) is very popular and has a vibrant community. Because of that, it has become very difficult for us to know how the bot is used and what errors people hit. By capturing small amounts of data, we can prioritize our work better such as fixing errors that happen to a large percentage of our user base, not just a vocal minority.

Our goal is to help inform our decisions by capturing data that helps us get aggregate usage and error reports, not personal information. To view the code that handles analytics in our master branch, you can use this [search link](https://github.com/PokemonGoF/PokemonGo-Bot/search?utf8=%E2%9C%93&q=BotEvent).

Expand Down
15 changes: 12 additions & 3 deletions configs/config.json.cluster.example
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@
"type": "EvolvePokemon",
"config": {
"enabled": false,
"//evolve all except Zubat and Rattata": "",
"//evolve_all": "-Zubat,-Rattata",
"evolve_all": "none",

"// evolve only pidgey and drowzee": "",
"// evolve_list": "pidgey, drowzee",
"// donot_evolve_list": "none",

"// evolve all but pidgey and drowzee": "",
"// evolve_list": "all",
"// donot_evolve_list": "pidgey, drowzee",

"evolve_list": "all",
"donot_evolve_list": "none",

"first_evolve_by": "cp",
"evolve_above_cp": 500,
"evolve_above_iv": 0.8,
Expand Down
29 changes: 20 additions & 9 deletions configs/config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
"config": {
"enabled": false,
"master": null,
"min_interval": 120,
"// old syntax, still supported: alert_catch": ["all"],
"// new syntax:": {},
"alert_catch": {
"all": {"operator": "and", "cp": 1300, "iv": 0.95},
"Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
}
"// new syntax:": {},
"alert_catch": {
"all": {"operator": "and", "cp": 1300, "iv": 0.95},
"Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
}
}
},
{
Expand Down Expand Up @@ -120,9 +121,18 @@
"type": "EvolvePokemon",
"config": {
"enabled": false,
"//evolve all except Zubat and Rattata": "",
"//evolve_all": "-Zubat,-Rattata",
"evolve_all": "none",

"// evolve only pidgey and drowzee": "",
"// evolve_list": "pidgey, drowzee",
"// donot_evolve_list": "none",

"// evolve all but pidgey and drowzee": "",
"// evolve_list": "all",
"// donot_evolve_list": "pidgey, drowzee",

"evolve_list": "all",
"donot_evolve_list": "none",

"first_evolve_by": "cp",
"evolve_above_cp": 500,
"evolve_above_iv": 0.8,
Expand Down Expand Up @@ -194,7 +204,8 @@
"config": {
"enabled": true,
"spin_wait_min": 3,
"spin_wait_max": 5
"spin_wait_max": 5,
"daily_spin_limit": 1900
}
},
{ "type": "UpdateWebInventory",
Expand Down
21 changes: 18 additions & 3 deletions configs/config.json.map.example
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@
"type": "EvolvePokemon",
"config": {
"enabled": false,
"//evolve all except Zubat and Rattata": "",
"//evolve_all": "-Zubat,-Rattata",
"evolve_all": "none",

"// evolve only pidgey and drowzee": "",
"// evolve_list": "pidgey, drowzee",
"// donot_evolve_list": "none",

"// evolve all but pidgey and drowzee": "",
"// evolve_list": "all",
"// donot_evolve_list": "pidgey, drowzee",

"evolve_list": "all",
"donot_evolve_list": "none",

"first_evolve_by": "cp",
"evolve_above_cp": 500,
"evolve_above_iv": 0.8,
Expand Down Expand Up @@ -192,6 +201,12 @@
"map_path": "raw_data",
"walker": "StepWalker",
"max_extra_dist_fort": 10,
"skip_rounds": 5,
"update_map_min_distance_meters": 500,
"update_map_min_time_sec": 120,
"snipe_sleep_sec": 2,
"snipe_max_in_chain": 2,
"debug": false,
"catch": {
"==========Legendaries==========": 0,
"Aerodactyl": 1000,
Expand Down
Loading