Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Play hangman in your IRC channel.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Readme.markdown
Octocat-spinner-32 cinch_hangman.gemspec
Readme.markdown

Grab the gem.

gem 'cinch_hangman'

And add hangman to your cinch bot as a plugin:

require 'cinch_hangman'

bot = Cinch::Bot.new do
  configure do |c|
    c.server          = "irc.freenode.net"
    c.plugins.plugins = [
      Cinch::Plugins::Hangman
    ]
  end
end

To start a new game send a private message to your bot:

compactcode: !hang new #channel secret

The game will be started in the specified channel.

bot: (s_____) hangman started.
compactcode: !hang guess s
bot: (s_____) 6 guesses left.

In order to minimize chatter players may guess multiple letters at a time.

compactcode: !hang guess et
bot: (se__et) 6 guesses left.
Something went wrong with that request. Please try again.