Cinch-github is a project mainly written in Ruby, based on the MIT license.
Cinch Plugin to let bots interact with Github
The Cinch Github Plugin. Give your cinch bot abilities to interact with Github! This is still in its early phases!
if you haven't already...
$ gem install cinch
then install this gem.
$ gem install cinch-github
This plugin manages interaction between Github issues via the Github API.
To setup the Issue plugin to work with your cinch bot, we'll need to provide some info like so:
Cinch::Plugins::Github::Issue.configure do |c|
c.user = 'achiu' # your github username
c.token = 'some_token' # your github API token
c.author = 'padrino' # your repository author
c.repo = 'padrino-framework' # your repository name
end
It's simple. follow the guide on cinch or do something like:
# mybot.rb
require 'cinch'
require 'cinch/plugins/github'
Cinch::Plugins::Github::Issue.configure do |c|
c.user = 'achiu' # your github username
c.token = 'some_token' # your github API token
c.author = 'padrino' # your repository author
c.repo = 'padrino-framework' # your repository name
end
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.freenode.net"
c.nick = "cinch"
c.channels = ["#padrino"]
c.plugins.plugins = [Cinch::Plugins::Github::Issue]
end
end
bot.start
Finally, run your bot.
ruby -rubygems mybot.rb
And there you go!
Michael D. Ivey (ivey)