Skip to content

Comments

Allow google analytics collect bot event.#1289

Closed
solderzzc wants to merge 19 commits intodevfrom
central_ai
Closed

Allow google analytics collect bot event.#1289
solderzzc wants to merge 19 commits intodevfrom
central_ai

Conversation

@solderzzc
Copy link
Contributor

Short Description:
Allow google analytics collect bot event.
Forbid personal information to be sent.

@elicwhite
Copy link
Contributor

This is a really scary and I imagine controversial thing to add. We are essentially gathering data on everyone using the bot and their usage. I think it would be valuable to do something like this so we can measure how the bot is being used, but we need to absolutely have a config flag that will let people disable it.

# -*- coding: utf-8 -*-
from UniversalAnalytics import Tracker

class BotEvent(object):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be named Analytics?

@douglascamata
Copy link
Member

douglascamata commented Jul 27, 2016

@solderzzc there's one guy implementing the Event/Signal system for logging and web socket and he's almost done, let's w8 for this system to merge this PR. It will be much easier to integrate analytics as an EventHandler.

@solderzzc
Copy link
Contributor Author

@douglascamata Sure, let's wait.
@TheSavior This is from https://github.com/analytics-pros/universal-analytics-python
To convert Google analytics JS version into HTTP post.

@douglascamata
Copy link
Member

douglascamata commented Jul 28, 2016

@solderzzc I agree with @TheSavior. We 100% need a config to disable data collection and if we set default option to collect data, we need to give users a BIG WARNING.

@solderzzc
Copy link
Contributor Author

@douglascamata Sure, will work on it.

johnsosoka and others added 5 commits July 28, 2016 10:33
* adding random delay between pokemon capture & transfer. #774

* improved fix for #774 by adding click_action_delay function

* wait time minimum & maximum are passed in from the config now

* updated readme & contributors files

* updated how action wait times are loaded from config

* optimize docker usage (#1257)

* update Dockerfile; install missed python-protobuf package; add CMD as a way of defining default arguments for the ENTRYPOINT

* remove CMD command, default config parameter is also set in pokecli.py

* Removed erroneous line in human_behavior and corrected bad merge resolution

* updated configs & changed function name to action_delay
Big warning and wait for 2s to exit when set to enable this feature, the default value set to true.
"--health_record",
help="Send anonymous bot event to GA for bot heath record, furthur ML will depend on it. Set \"health_record\":false if you need disable it.",
type=bool,
default=True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be defaulted to false. We should encourage people to opt-in, but it should never be the default for tracking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heath > health

@jtdroste
Copy link
Contributor

We should leave any collecting of data defaulted to off. Highly against defaulting this to true (aka on by default).

fredrik-hellmangroup and others added 2 commits July 28, 2016 03:12
* seperate worker for transfering pokemons to professor

pulled out initial transfer and transfer on catched pokemon to seperate
worker

* Fixed bug where config parameters wasnt checked

* Initial_transfer renamed to release_pokemons

Also updated the configuration argument

function to release pokemon runs on tick method which is called after
everyt small step the bot takes

* added back exception which was missing

* Default conf value and fixed typo

* fixed typo for pokemon and updated config
* added default value if its missing from conf

NOTE: transfer conditions are set by "release" parameters in config,
however we keep the highest CP of each pokemon, just to be sure we don't
empty the bag.

* Capital leter

* missed to rename on some places

Also enabled loggning to easier see why a certain pokemon may not be
transfered to professor for candy

* Log format update

* moved runtime error to evolved_capture statement

workaround if anyone should get it...

fixing it in future
@solderzzc
Copy link
Contributor Author

@jtdroste we have a big warning (in red) and two seconds waiting for exiting. Do you think that's reasonable for that?

@solderzzc
Copy link
Contributor Author

Shouldn't use git rebase.

@solderzzc solderzzc closed this Jul 28, 2016
@solderzzc solderzzc deleted the central_ai branch July 28, 2016 04:25
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this pull request Sep 28, 2016
* Update README.md

* Update README.md

* Update README.md

* Update ISSUE_TEMPLATE.md

* Update README.md

* Update README.md

* direct pr to dev branch

* Update README.md

* Update PULL_REQUEST_TEMPLATE.md

* Updated templates for master

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Added japanese pokemon name. (PokemonGoF#1116)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update LICENSE

* python 2.7 batch (PokemonGoF#1289)

* added donation address

* cleared master

* Update map.js

* Update map.js

* Added back China coords transformation, (PokemonGoF#1423) (PokemonGoF#1424)

which was deleted in some PR.

* Change default display to no pokestops, no scan bubbles (PokemonGoF#1425)

* Added new video guide to readme
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this pull request Sep 28, 2016
…1289)

* [Fix] issue PokemonGoF#622, statistics 2x Uncaught TypeError

* Fix lint errors

* Prevent OSK on Touch

* Select Boxes prevent Virtual Keyboard Appearing on Touch Devices

* remove unnecessary loop

* basic mobile os detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants