PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

WebSocket Port

Open LUCKASSs opened this issue 10 years ago • 5 comments

Hello guys Any tips to open the WebSocketPort on 14251 for use the bot with this UI : https://github.com/GediminasMasaitis/PokeEase ?

btw I'm using actually this UI : https://github.com/ChiarilloMassimo/PokemonGo-Farm But I can't link the bot to the UI.. Any tips to do that ?

Thx !

LUCKASSs avatar Sep 13 '16 18:09 LUCKASSs

Maybe you better comment in the @ChiarilloMassimo - Repository for questions regarding his app. and in @GediminasMasaitis repo for questions regarding him. Also I'm not sure how you used the app if you were not able to link the bot...

Nevertheless: I think app.dir is the key to where to place the app. Look at where it gets set: $app['app.dir'] = $this->getAppDir();

    protected function getAppDir()
    {
        return realpath(sprintf('%s/../app/', __DIR__));
    }

and finally in src/Process/PokemonGoBotProcess.php you find the process that calls the bot:


                '(cd %s/../PokemonGo-Bot %s) &',
                SilexApp::getInstance()['app.dir'],
                $command

little bit confusing code but in the end it looks like you would have to clone your PokemonGo-Bot to the root directory of the UI-app. Not sure if this is good git standard but you could add the bot-repo to the ignore list of the UI-repo.

ukos-git avatar Sep 13 '16 21:09 ukos-git

@ukos-git or anyone else because this involves web socket. Can someone explain this bit of code for me...?

}, "websocket": { "start_embedded_server": true, "server_url": "127.0.0.1:4000" }

HelloTroy avatar Sep 15 '16 04:09 HelloTroy

seems like other apps can remote control the bot through that server. Never tried it. Maybe ask @rawgni or @douglascamata to write something to the docs.

ukos-git avatar Sep 15 '16 14:09 ukos-git

Any other tips ?

LUCKASSs avatar Sep 17 '16 17:09 LUCKASSs

Closed op not relevant to pokemongo-bot

Gobberwart avatar Sep 22 '16 04:09 Gobberwart