fix bad math result spam

This commit is contained in:
Lera Elvoé 2023-05-13 19:27:27 +03:00
parent 3c3815defb
commit ac30629979
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -167,7 +167,7 @@ bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event|
if result == user_result if result == user_result
get_coin(event, MATH_PROBLEM_COIN_GAIN) get_coin(event, MATH_PROBLEM_COIN_GAIN)
else elsif user_result.is_a? Integer
event.respond "Nice try, but you're wrong!" event.respond "Nice try, but you're wrong!"
end end
end end