0.0.2 • Published 10 years ago

ziggy-gh v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

ziggy-gh

ziggy-gh is a GitHub API plugin for the ziggy IRC bot, written in node.js

Install

Add the plugin to your ziggy code.

var Ziggy = require('ziggy').Ziggy
, ziggyGh = require('ziggy-gh')
  , ziggy = new Ziggy({
        server: 'irc.freenode.net'
      , nickname: 'ziggy'
      , plugins: [{name: 'ziggy-gh', setup: ziggyGh}]
      , channels: ['#learnjavascript']
    })
ziggy.start();

Usage

When ziggy detects a !gh username command in the channel, a request is made to GitHub via the API and the public details for that user are returned.

example

!gh Ebsy

will return

GitHub page at: https://github.com/Ebsy Public Repos: 12 and 0 Gists. Ebsy has 4 followers and is following 4 other users.

public details of a repo is also possible with !gh username

!gh Ebsy ziggy-gh

will return

Repo at: https://github.com/Ebsy/ziggy-gh Last update: 2014-04-08T17:56:19Z repo has 1 star(s). Clone with: git@github.com:Ebsy/ziggy-gh.git

More information available at the GitHub API.

License

MIT

0.0.2

10 years ago

0.0.1

10 years ago