-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an option to save pokemon spawns
- Loading branch information
Showing
360 changed files
with
22,787 additions
and
3,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
.idea | ||
.git* | ||
**/*config.json | ||
**/*userdata.js | ||
**/*userdata.js | ||
data/caught-*.json | ||
data/cells-*.json | ||
data/deviceid-*.txt | ||
data/last-location-*.json | ||
data/*.db | ||
web/catchable-*.json | ||
web/inventory-*.json | ||
web/location-*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,9 @@ | |
* Quantra | ||
* pmquan | ||
* net8q | ||
* SyncX | ||
* umbreon222 | ||
* DeXtroTip | ||
* rawgni | ||
* Breeze Ro | ||
* bruno-kenji |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,58 @@ | ||
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 alpine | ||
|
||
ARG BUILD_REPO=PokemonGoF/PokemonGo-Bot | ||
ARG BUILD_BRANCH=master | ||
|
||
LABEL build_repo=$BUILD_REPO build_branch=$BUILD_BRANCH | ||
|
||
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 cd /tmp && wget "http://pgoapi.com/pgoencrypt.tar.gz" \ | ||
&& tar zxvf pgoencrypt.tar.gz \ | ||
&& cd pgoencrypt/src \ | ||
&& make \ | ||
&& cp libencrypt.so /usr/src/app/encrypt.so \ | ||
&& cd /tmp \ | ||
&& rm -rf /tmp/pgoencrypt* | ||
RUN apk -U --no-cache add python py-pip tzdata \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& find / -name '*.pyc' -o -name '*.pyo' | xargs -rn1 rm -f | ||
|
||
ENV LD_LIBRARY_PATH /usr/src/app | ||
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 \ | ||
&& 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/* /tmp/pgoencrypt* /usr/include/xlocale.h \ | ||
&& find / -name '*.pyc' -o -name '*.pyo' | xargs -rn1 rm -f | ||
|
||
COPY requirements.txt /usr/src/app/ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
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 | ||
|
||
COPY . /usr/src/app | ||
RUN printf "#!/bin/sh\n\ | ||
\n\ | ||
TIMEZONE=\${TIMEZONE:-Etc/UTC}\n\ | ||
\n\ | ||
ln -sfn /usr/share/zoneinfo/\$TIMEZONE /etc/localtime\n\ | ||
echo \$TIMEZONE > /etc/timezone\n\ | ||
\n\ | ||
python pokecli.py \$@\n" > /entrypoint.sh \ | ||
&& chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT ["python", "pokecli.py"] | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"auth_service": "google", | ||
"username": "YOUR_USERNAME", | ||
"password": "YOUR_PASSWORD", | ||
"location": "SOME_LOCATION", | ||
"favorite_locations":[ | ||
{"name": "Milan", "coords": "45.472849,9.177567"} | ||
], | ||
"gmapkey": "GOOGLE_MAPS_API_KEY", | ||
"encrypt_location": "", | ||
"telegram_token": "" | ||
} |
Oops, something went wrong.