fix never getting a +

This commit is contained in:
Lera Elvoé 2023-05-08 18:01:51 +03:00
parent 89dcaf46ea
commit 0832d25a26
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -185,7 +185,7 @@ loop do
$mathproblem_op1 = rand(10..150) $mathproblem_op1 = rand(10..150)
$mathproblem_op2 = rand(10..150) $mathproblem_op2 = rand(10..150)
$mathproblem_operator = rand(1) == 1 ? "+" : "-" $mathproblem_operator = rand(2) == 1 ? "+" : "-"
# send the math problem # send the math problem
bot.send_message(ENV['BOT_CHANNEL'], "Solve the following for #{MATH_PROBLEM_COIN_GAIN} coins: `#{$mathproblem_op1} #{$mathproblem_operator} #{mathproblem_op2}`") bot.send_message(ENV['BOT_CHANNEL'], "Solve the following for #{MATH_PROBLEM_COIN_GAIN} coins: `#{$mathproblem_op1} #{$mathproblem_operator} #{mathproblem_op2}`")