lib/cinch/plugins/hangman.rb in cinch_hangman-0.0.3 vs lib/cinch/plugins/hangman.rb in cinch_hangman-0.0.4
- old
+ new
@@ -1,18 +1,15 @@
module Cinch::Plugins
class Hangman
include Cinch::Plugin
- match /hang (.*)/i, :method => :guess
+ match /hang guess (.*)/i, :method => :guess
match /hang new (#\S*) (.*)/i, :method => :new_game
def new_game(m, channel, answer)
@game = CinchHangman::Game.new(answer)
Channel(channel).send(@game.describe)
end
def guess(m, guess)
@game.guess(guess)
- m.reply @game.describe
- end
- def status(m)
m.reply @game.describe
end
end
end