Skip to content

Ebsy/ziggy-gh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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] [repo]

!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: [email protected]:Ebsy/ziggy-gh.git

More information available at the GitHub API.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •