Giter VIP home page Giter VIP logo

pogorobot's People

Contributors

dependabot[bot] avatar frankiesoc avatar theyellow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pogorobot's Issues

exraid filter possibility for personal bot

This is a enhancement of #23 to also configure ExRaids

  • PersonalMode -> choose ExRaidGyms
  • CommunityMode -> new groupXgyms.txt to filter special
    -> New Table ExraidFilter
    - gymId
    - chatId

new filter-method isExraidMatch(gymId, chatId) for triggerPokemonMessage/triggerRaidMessage (has to be used for Users and groups)

Missing scanned and matched Pokemom

Hello, i have 2 Channel with 2 Bots. 1. with PogoRobot another wit mypogobot. Both are feeded from the same rdm. But the Channel with PogoRobot didn't post the same Pokemon.

2019_11_21 20:38:24 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=11913108525176181079, pokemon_id=216, latitude=51.568672, longitude=7.059125, disappear_time=1574366299, last_modified_time=157436509$ 2019_11_21 20:38:24 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=2741852015675185629, pokemon_id=198, latitude=51.569741, longitude=7.063349, disappear_time=1574366299, last_modified_time=1574365099$ 2019_11_21 20:38:24 DEBUG WebhookServer - message: pogorobot.events.rocketmap.RdmInvasion@c3a51da 2019_11_21 20:38:24 DEBUG WebhookServer - processing next message: RocketmapPokemon [spawnpoint_id=None, encounter_id=11913108525176181079, pokemon_id=216, latitude=51.568672, longitude=7.059125, disappear_time=1574366299, last_modifie$ 2019_11_21 20:38:24 DEBUG ProcessedElementsServiceRepository - processed pokemon for this encounter 2019_11_21 20:38:24 DEBUG ProcessedElementsServiceRepository - pokemon already encountered with encounterId 11913108525176181079 , pokemon: PokemonWithSpawnpoint [spawnpointId=706389916795369, encounterId=11913108525176181079, pokemonI$ 2019_11_21 20:38:24 DEBUG ProcessedElementsServiceRepository - but it's no detail-scan 2019_11_21 20:38:24 DEBUG TelegramService - begin filter analyze of filter 668 2019_11_21 20:38:24 DEBUG FilterService - Filter has 3 geofences 2019_11_21 20:38:24 DEBUG FilterService - There are 24 coordinates in this geofence 2019_11_21 20:38:24 DEBUG FilterService - There are 22 coordinates in this geofence 2019_11_21 20:38:24 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:38:24 DEBUG FilterService - 3 geofences found for this filter 2019_11_21 20:38:24 DEBUG FilterService - Analyze filter 668 2019_11_21 20:38:24 DEBUG TelegramService - no iv scanning for filter 668 because no iv given for pokemon 216 at spawnpoint 706389916795369 2019_11_21 20:38:24 DEBUG TelegramService - only-iv filtering stops sending message to 11404735 2019_11_21 20:38:24 DEBUG TelegramService - nothing to do, no future. returning null 2019_11_21 20:38:24 DEBUG ProcessedElementsServiceRepository - got no real answer for monster encounter 11913108525176181079 in chat 11404735 2019_11_21 20:38:24 DEBUG TelegramService - chat -1001451917383 will be tested with monster encounter 11913108525176181079 2019_11_21 20:38:24 DEBUG TelegramService - begin filter analyze of filter 604 2019_11_21 20:38:24 DEBUG FilterService - Filter has 1 geofences 2019_11_21 20:38:24 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:38:24 DEBUG FilterService - 1 geofences found for this filter 2019_11_21 20:38:24 DEBUG FilterService - Analyze filter 604 2019_11_21 20:38:24 DEBUG TelegramService - no iv scanning for filter 604 because no iv given for pokemon 216 at spawnpoint 706389916795369 2019_11_21 20:38:24 DEBUG TelegramService - only-iv filtering stops sending message to -1001451917383 2019_11_21 20:38:24 DEBUG TelegramService - got no future for monster encounter 11913108525176181079 in chat -1001451917383, filter didn't match? 2019_11_21 20:38:24 DEBUG WebhookServer - processing next message: RocketmapPokemon [spawnpoint_id=None, encounter_id=2741852015675185629, pokemon_id=198, latitude=51.569741, longitude=7.063349, disappear_time=1574366299, last_modified$ 2019_11_21 20:38:25 DEBUG ProcessedElementsServiceRepository - processed pokemon for this encounter 2019_11_21 20:38:25 DEBUG ProcessedElementsServiceRepository - pokemon already encountered with encounterId 2741852015675185629 , pokemon: PokemonWithSpawnpoint [spawnpointId=706390049818448, encounterId=2741852015675185629, pokemonId=$ 2019_11_21 20:38:25 DEBUG ProcessedElementsServiceRepository - but it's no detail-scan 2019_11_21 20:38:25 DEBUG TelegramService - begin filter analyze of filter 668 2019_11_21 20:38:25 DEBUG FilterService - Filter has 3 geofences 2019_11_21 20:38:25 DEBUG FilterService - There are 24 coordinates in this geofence 2019_11_21 20:38:25 DEBUG FilterService - There are 22 coordinates in this geofence 2019_11_21 20:38:25 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:38:25 DEBUG FilterService - 3 geofences found for this filter 2019_11_21 20:38:25 DEBUG FilterService - Analyze filter 668 2019_11_21 20:38:25 DEBUG TelegramService - no iv scanning for filter 668 because no iv given for pokemon 198 at spawnpoint 706390049818448 2019_11_21 20:38:25 DEBUG TelegramService - only-iv filtering stops sending message to 11404735 2019_11_21 20:38:25 DEBUG TelegramService - nothing to do, no future. returning null 2019_11_21 20:38:25 DEBUG ProcessedElementsServiceRepository - got no real answer for monster encounter 2741852015675185629 in chat 11404735 2019_11_21 20:38:25 DEBUG TelegramService - chat -1001451917383 will be tested with monster encounter 2741852015675185629 2019_11_21 20:38:25 DEBUG TelegramService - begin filter analyze of filter 604 2019_11_21 20:38:25 DEBUG FilterService - Filter has 1 geofences
am match lokks like this:

2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=8E6A61DF, encounter_id=15946817461452945927, pokemon_id=216, latitude=51.5465806227725, longitude=7.13771914516904, disappear_time=1574366391, last_m$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=11723056158760032039, pokemon_id=41, latitude=51.548632, longitude=7.13908, disappear_time=1574366154, last_modified_time=15743649$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=6160659487195531664, pokemon_id=111, latitude=51.544922, longitude=7.137731, disappear_time=1574366155, last_modified_time=1574364$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=14355491083220984123, pokemon_id=72, latitude=51.547235, longitude=7.145721, disappear_time=1574366154, last_modified_time=1574364$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=3048122572900770215, pokemon_id=111, latitude=51.543279, longitude=7.14381, disappear_time=1574366155, last_modified_time=15743649$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=9482174482843329480, pokemon_id=198, latitude=51.546759, longitude=7.135959, disappear_time=1574366155, last_modified_time=1574364$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=5667443521675920294, pokemon_id=72, latitude=51.54712, longitude=7.134192, disappear_time=1574366155, last_modified_time=157436495$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=4366166340042439550, pokemon_id=111, latitude=51.543442, longitude=7.143645, disappear_time=1574366155, last_modified_time=1574364$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=10932168034212636495, pokemon_id=111, latitude=51.544922, longitude=7.137731, disappear_time=1574366155, last_modified_time=157436$ 2019_11_21 20:36:00 DEBUG WebhookServer - message: RocketmapPokemon [spawnpoint_id=None, encounter_id=6417907790316345175, pokemon_id=92, latitude=51.543279, longitude=7.14381, disappear_time=1574366154, last_modified_time=157436495$ 2019_11_21 20:36:00 DEBUG WebhookServer - processing next message: RocketmapPokemon [spawnpoint_id=8E6A61DF, encounter_id=15946817461452945927, pokemon_id=216, latitude=51.5465806227725, longitude=7.13771914516904, disappear_time=15$ 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - processed pokemon for this encounter 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - pokemon already encountered with encounterId 15946817461452945927 , pokemon: PokemonWithSpawnpoint [spawnpointId=8E6A61DF, encounterId=15946817461452945927, pokemonId=21$ 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - it's a detailed mon-scan, so check iv-filter again and update message... 2019_11_21 20:36:00 DEBUG TelegramService - begin filter analyze of filter 668 2019_11_21 20:36:00 DEBUG FilterService - Filter has 3 geofences 2019_11_21 20:36:00 DEBUG FilterService - There are 24 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - There are 22 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - 3 geofences found for this filter 2019_11_21 20:36:00 DEBUG FilterService - Analyze filter 668 2019_11_21 20:36:00 DEBUG TelegramService - ivs given, begin analyze IV for 668 2019_11_21 20:36:00 DEBUG TelegramService - 3 geofences found for this filter 2019_11_21 20:36:00 DEBUG TelegramService - iv didn't match for pokemon 216 and filter 668 : min iv is 88.0 , calculated iv 71.11111111111111 2019_11_21 20:36:00 DEBUG TelegramService - only-iv filtering stops sending message to 11404735 2019_11_21 20:36:00 DEBUG TelegramService - nothing to do, no future. returning null 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - got no real answer for monster encounter 15946817461452945927 in chat 11404735 2019_11_21 20:36:00 DEBUG TelegramService - chat -1001451917383 will be tested with monster encounter 15946817461452945927 2019_11_21 20:36:00 DEBUG TelegramService - begin filter analyze of filter 604 2019_11_21 20:36:00 DEBUG FilterService - Filter has 1 geofences 2019_11_21 20:36:00 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - 1 geofences found for this filter 2019_11_21 20:36:00 DEBUG FilterService - Analyze filter 604 2019_11_21 20:36:00 DEBUG TelegramService - ivs given, begin analyze IV for 604 2019_11_21 20:36:00 DEBUG TelegramService - 1 geofences found for this filter 2019_11_21 20:36:00 DEBUG TelegramService - iv didn't match for pokemon 216 and filter 604 : min iv is 79.0 , calculated iv 71.11111111111111 2019_11_21 20:36:00 DEBUG TelegramService - only-iv filtering stops sending message to -1001451917383 2019_11_21 20:36:00 DEBUG TelegramService - got no future for monster encounter 15946817461452945927 in chat -1001451917383, filter didn't match? 2019_11_21 20:36:00 DEBUG WebhookServer - processing next message: RocketmapPokemon [spawnpoint_id=None, encounter_id=11723056158760032039, pokemon_id=41, latitude=51.548632, longitude=7.13908, disappear_time=1574366154, last_modifi$ 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - processed pokemon for this encounter 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - pokemon already encountered with encounterId 11723056158760032039 , pokemon: PokemonWithSpawnpoint [spawnpointId=706245691181714, encounterId=11723056158760032039, pokem$ 2019_11_21 20:36:00 DEBUG ProcessedElementsServiceRepository - but it's no detail-scan 2019_11_21 20:36:00 DEBUG TelegramService - begin filter analyze of filter 668 2019_11_21 20:36:00 DEBUG FilterService - Filter has 3 geofences 2019_11_21 20:36:00 DEBUG FilterService - There are 24 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - There are 22 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - There are 21 coordinates in this geofence 2019_11_21 20:36:00 DEBUG FilterService - 3 geofences found for this filter

New Problem with "Could not resolve type id 'weather' as a subtype of"

Hello, a new issue apears: "Could not resolve type id 'weather' as a subtype of" it is a RDM Feature:

WARN DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Could not resolve type id 'weather' as a subtype of [simple type, class pogorobot.rocketmap.messages.IncomingEvent<pogorobot.events.EventMessage<java.lang.Object>>]: known type ids = [egg, gym, gym_details, invasion, pokemon, pokestop, quest, raid]; nested exception is com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'weather' as a subtype of [simple type, class pogorobot.rocketmap.messages.IncomingEvent<pogorobot.events.EventMessage<java.lang.Object>>]: known type ids = [egg, gym, gym_details, invasion, pokemon, pokestop, quest, raid]

peer2peer synchronisation of raid appointments with different installations

thinking of sth like getting the possibility from each personal bot to find and subscribe to raids in other areas with different kind of installations and (telegram- or discord-)bots also used for appointments.
This would need some kind of standards for all different bots, at first perhaps just start small with own identifiers of raids and json-messages for doing a proof of concept/work (and to animate other bot-developers to join :) )
in my opinion, at 1st should be fine-description on the service-definition, "what" should be shared and "who is interested". "who has information" and how to get it is already service-discovery and service-location and should be a task taken care of by an existing p2p protocol. so step 2 is finding a p2p-architecture and -protocol matching my/our constraints.

new function

HI

  1. if you do docker down you shouldn't clean the DB.
  2. Use your own stickers in the config.
  3. Infobox that is always shown below who has agreed to which raid.

clean up possible meeting-times of raids

Atm there are sometimes 4 slots, sometimes 5 slots and either 1st and 2nd or 4th and 5th are just a few minutes different.
So we have to refactor RaidAtGymEvent.createEmptyEventSet()

The class has start and end, and can get the time right now (oh, wow). The method should create an empty event set with at most 4 possible times, preferably one about 5 minutes before end and at least 10 minutes between the events.
AND each slot should be ending with 0 or 5....

autorefresh of configuration

changed configuration should be imported automatically. Perhaps use ExecutorService to check file-timestamps every 20 seconds and reload if changed.

Remote RAID button and Trainer Code

Remote RAID button with trainer code function store the trainer code in the bot, which is automatically displayed when you do a remote raid.

summarize the postings

Please add an option to summarize the postings of Mon and Raid at the end of the channel/group to jump quickly via link

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.