r/node•
hlfshell

I made a node.js powered Pokemon Go detecting slackbot

It was a pretty fun one day build I did Sunday. Cleaned it up with docs and command line interface today. Hopefully someone out there will enjoy it.

Github link

Posted Aug 15, 2016, 9:30 PM UTC

2613
dorupikku•

You have some random quotes on line 40 :)

1
hlfshellOP•

Nice catch, thanks! Fixed and deployed.

3
sikosmurf•

You are an amazing monster that will prevent my work from getting anything done. I'm going to deploy it tonight. I'll let you know how it goes!

1
hlfshellOP•

If there are any problems let me know. This was a rush build so there's no tests. I ran it all day at work with no issues. Deploying on our 3d printing octoprint server so it won't have to run on my laptop tomorrow.

1
sikosmurf•

Ran it, looks like it's not getting past pokeGo.init for me...

[dev@dev-ec2 pokemon-go-slackbot]$ node chatbot.js -c ./config_baltimore.json 
Bot started
Connecting to Pokemon API...
[i] Logging with user: sikosmurf
[i] Session token: <snip>-sso.pokemon.com
[i] Received PTC access token!

I added a probing statement before the call and within the callback. It gets the access token, but then doesn't do anything afterwards. I literally just registered for a trainer account. think that could be it?

1
hlfshellOP•

I think you have to catch your first pokemon first - I did at least.

The trainer club account by itself doesnt create an account within the game.

2
sikosmurf•

Just did all that, though I haven't hit a poke stop, and it's still sticking in the same spot. Guess I'll have to work on it tomorrow :-/

1
flashbck•

Enjoy it while you can. Eventually you will get a cease and desist order from Niantic like pokemongo map did

1
hlfshellOP•

Fingers crossed then.

1
TheOneRavenous•

It will be found they're are monitoring this significantly based on their news release about third party apps and sites.

1
hlfshellOP•

OK.

1