From ac30629979995f35f58887258da4193bf8467630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 13 May 2023 19:27:27 +0300 Subject: [PATCH] fix bad math result spam --- coin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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