npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pokemon-go-slackbot

v1.1.0

Published

A slackbot for Pokemon Go - it will alert to nearby pokemon.

Downloads

4

Readme

pokemon-go-slackbot

Pokemon-Go-SlackBot is a bot that announces nearby pokemon to channel(s). Pair this bot with a Slack token, a login for Pokemon Trainer's Club, and a latitude/longitude position to have a helpful Pokemon announcement in any channels you want.

Warning: Since api usage is a bannable offense, don't be surprised if the account is banned after awhile. I suggest using a fake throw away Pokemon Trainer's Club account.

#Installation

##Manual

git clone https://github.com/hlfshell/pokemon-go-slackbot.git
cd pokemon-go-slackbot
npm install
node chatbot.js -c config.json

##Automatic

npm install -g pokemon-go-slackbot
pokemon-go-slackbot -c config.json

#Setting up You can use any combination of a configuration file and command line parameters you wish. ##Command Line

Username + password for Pokemon Trainers Club must be provided

  Usage: chatbot [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -c, --config [filepath]    Set configuration json file (can set all below settings)
    -u, --username [username]  Pokemon Trainer Club username
    -p, --password [password]  Pokemon Trainer Club password
    -n, --name [name]          Name of your slack bot
    -t, --token [token]        Slack bot token
    --latitude [latitude]      Latitude of scan location
    --longitude [longitude]    Longitude of scan location
    --channels <channels>      List of channels to join (comma seperated) ie: general,games,srsbznss,etc
    --exclude <pokemon-list>   List of pokemon to exclude from announcement (comma seperated) ie: 21,16,17,etc

Configuration file (JSON)

{
	"username": "Pokemon Trainer's Club username",
	"password": "Pokemon Trainer's Club password",
	"token": "slack token",
	"name": "name",
	"channels": ["channel"],
  "exclude": [21, 16, 17],
	"latitude": 38.632699,
	"longitude": -90.207765
}

Running the bot

You must ensure that you log into Pokemon Go at least once with that account - a Trainer's Club account does not mean you have a Pokemon Go account.

Warning: It seems that cloud provider IP address ranges are blocked, so you can't use AWS with this.

Be sure to use the bot-name that you provided slack for that API token. Also, bots will not auto-join rooms - you must invite them into the room before they can post to it.,