GithubHelp home page GithubHelp logo

pkgbot's Introduction

Snyk logo

Known Vulnerabilities


pkgbot

A statistics slack bot for npm packages and ruby gems The bot will fetch information from npmjs or rubygems and show it on screen.

Prerequisites

  • Before creating the pkgbot, you need to create a new Slack bot and record your API token, export it as an environment variable named SLACK_TOKEN. You can, if you like, also use the bot image as your avatar for your bot.

  • Please export your Snyk auth token (found here) to an environment variable named SNYK_AUTH_TOKEN

  • Please add the following slack custom emojis:

:npm: npm.png
:rubygems: ruby.png
:highsev: highsev.png
:medsev: medsev.png
:lowsev: lowsev.png

Icons located at the /icons directory

The quick way

You can use the Heroku button below, and add the API token for the bot you created earlier:

Deploy

Manual install and deploy

Using node 6, you can manually run the pkgbot using the following commands:

$ git clone https://github.com/Snyk/pkgbot.git
$ cd pkgbot
$ npm install
$ npm start

How-to

You can request information in a public channel by calling @pkgbot and stating npm/ruby [package]. Otherwise, in the direct channel you can query information by stating only by stating the package manager and the package.

Channel:

/invite @pkgbot
@pkgbot npm request
@pkgbot ruby actionpack
@pkgbot help

Direct Message:

npm moment
ruby httparty

License

License: Apache License, Version 2.0

pkgbot's People

Contributors

karenyavine avatar tkadlec avatar maban avatar adrukh avatar

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.