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

grobot

v0.0.5

Published

![Icon](http://www.imageupload.co.uk/images/2015/04/29/icon.png)

Downloads

8

Readme

Icon

Gro-bot

A simple yet somewhat clever node.js Twitter bot based on Twit to automate or semi-automate your tweets through a simple client interface

1. Setup

You can install grobot as a global dependency and run it as an executable

npm install -g grobot

Or you can clone this repo and run node lib/index.js from within it

git clone [email protected]:tancredi/grobot.git
cd grobot 

2. Configuration

In order to run grobot, you need to point it to a JSON configuration file.

Your configuration file needs to contain your Twitter app credentials and a few more things (E.g. a list of interest, language, etc..)

Your configuration needs to look like the following:

{
    "id": "MyBotName",
    "app" : {
        "consumer_key"        : "xxxxxxxxxxxxxxxxxxxxxxxxx",
        "consumer_secret"     : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "access_token"        : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "access_token_secret" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    "interests": {
        "language": "en",
        "keywords": [
            "#coffee",
            "#tea",
            "#holidays",
            "travels",
            "jobs"
        ]
    }
}

Store this json wherever you want, in the next examples we'll pretend it's stored in ~/bots/myBot.json

3. Usage

Now you can see the grobot tasks menu by running:

grobot ~/bots/myBot.json

Screenshot

Or directly run a specific task:

grobot ~/bots/myBot.json buffer

Screenshot

See the next section to understand tasks better

4. Tasks

Auto

Auto is the simplest taks to use. The bot will pick tweets that it considers relevant to your bot's interest and it hasn't tweeted before (Grobot stores its actions in memory) and tweet them at random intervals between 2 and 10 minutes (By default).

If it runs out of tweets it means it didn't find tweets relevant or popular enough by its criteria in the last 500 found in the interests stream - You can always add more interests, flush its history or try again later.

Usage:

grobot bot_config.json auto

Buffer

Use the buffer task to be automatically suggested with a list of relevant tweets. All you'll have to do is say yes or no to those, and they'll be added to your queue, which gets stored in memory.

In order to then automate the tweeting of your queue, use the Queue task.

Usage:

grobot bot_config.json buffer

Queue

Use the queue task to publish the tweets queued by the Buffer task.

Usage:

grobot bot_config.json queue

Flush

Flush the tweets that have been processed by the Buffer task and the Auto task - Start fresh.

This task will empty the storage relative to the bot in use.

Usage:

grobot bot_config.json flush

Reset

Reset will delete the data stored for all of your bots in once.

Usage:

grobot bot_config.json reset

License

Copyright (c) 2014 Tancredi Trugenberger. - Released under the MIT license