0.0
No commit activity in last 3 years
No release in over 3 years
Let your IRC bot conduct a game of hangman.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

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.