diff --git a/coin.rb b/coin.rb index 8b5d237..f49a4c8 100644 --- a/coin.rb +++ b/coin.rb @@ -167,7 +167,7 @@ bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event| if result == user_result get_coin(event, MATH_PROBLEM_COIN_GAIN) - else + elsif user_result.is_a? Integer event.respond "Nice try, but you're wrong!" end end