diff options
-rw-r--r-- | data/rbot/plugins/games/hangman.rb | 2 | ||||
-rw-r--r-- | lib/rbot/ircbot.rb | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/data/rbot/plugins/games/hangman.rb b/data/rbot/plugins/games/hangman.rb index c0a5ddc3..2a4bf338 100644 --- a/data/rbot/plugins/games/hangman.rb +++ b/data/rbot/plugins/games/hangman.rb @@ -63,7 +63,7 @@ class Hangman end class Hangman - attr_reader :misses, :guesses, :word, :letters, :scores + attr_reader :misses, :guesses, :word, :scores STAGES = [' (x_x) ', ' (;_;) ', ' (>_<) ', ' (-_-) ', ' (o_~) ', ' (^_^) ', '\(^o^)/'] HEALTH = STAGES.size-1 diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 6c8d6332..8b4dbaeb 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -468,6 +468,11 @@ class Bot exit 2 end + # Time at which the last PING was sent + @last_ping = nil + # Time at which the last line was RECV'd from the server + @last_rec = nil + @startup_time = Time.new begin |