GithubHelp home page GithubHelp logo

Comments (8)

dmateusp avatar dmateusp commented on May 22, 2024

Maybe logging each message with a time would be a first step to create reports

from pokemongo-bot.

douglascamata avatar douglascamata commented on May 22, 2024

@dmateusp I'm creating an awesome report manager object. It would work like this:

report_manager = ReportManager()
report_manager.add_report(name='caught_pokemon_count', kind='count', description='Number of Pokemons caught')

report_manager.add_data('caught_pokemon_count', 'Evee')
report_manager.add_data('caught_pokemon_count', 'Pidgey')

report_manager.report()

This should print:

Number of Pokemons caught: 2

from pokemongo-bot.

douglascamata avatar douglascamata commented on May 22, 2024

@dmateusp it's possible that I make the add_data method return a string that can be used to log the event.

from pokemongo-bot.

douglascamata avatar douglascamata commented on May 22, 2024

Also, possible kinds I have in mind: dict, list and count.

from pokemongo-bot.

dmateusp avatar dmateusp commented on May 22, 2024

Looks great @douglascamata !

from pokemongo-bot.

surfaace avatar surfaace commented on May 22, 2024

when 'interrupted' suggestion would to print startup details:

[2016-07-24 23:45:01] [#] Bag Storage: 281/350
[2016-07-24 23:45:01] [#] Pokemon Storage: 158/250
[2016-07-24 23:45:01] [#] Stardust: 122635
[2016-07-24 23:45:01] [#] Pokecoins: 0
[2016-07-24 23:45:01] [#] PokeBalls: 33
[2016-07-24 23:45:01] [#] GreatBalls: 17
[2016-07-24 23:45:01] [#] UltraBalls: 13
[2016-07-24 23:45:01] [#] -- Level: 22
[2016-07-24 23:45:01] [#] -- Experience: 347070
[2016-07-24 23:45:01] [#] -- Experience until next level: 87930

from pokemongo-bot.

maestroi avatar maestroi commented on May 22, 2024

dev would do the following
[05:00:08] Ran for 0:42:47
[05:00:08] Total XP Earned: 13990 Average: 19619.00/h
[05:00:08] Travelled 1.85km
[05:00:08] Visited 122 stops
[05:00:08] Encountered 74 pokemon, 64 caught, 0 released, 0 evolved, 0 never seen before
[05:00:08] Threw 101 pokeballs
[05:00:08] Earned 6400 Stardust
[05:00:08]
[05:00:08] Highest CP Pokemon: Drowzee [CP: 667] [IV: 9/11/15] Potential: 0.78
[05:00:08] Most Perfect Pokemon: Zubat [CP: 46] [IV: 14/14/14] Potential: 0.93

from pokemongo-bot.

gregtampa avatar gregtampa commented on May 22, 2024

Done

from pokemongo-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.