send block gif for math questions
This commit is contained in:
parent
d548e00fb3
commit
caaf419d6d
1
coin.rb
1
coin.rb
@ -188,6 +188,7 @@ loop do
|
|||||||
$mathproblem_operator = rand(2) == 1 ? "+" : "-"
|
$mathproblem_operator = rand(2) == 1 ? "+" : "-"
|
||||||
|
|
||||||
# send the math problem
|
# send the math problem
|
||||||
|
bot.send_file(ENV['BOT_CHANNEL'], File.open('./block.gif', 'r'))
|
||||||
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}`")
|
||||||
else
|
else
|
||||||
# activate coin state
|
# activate coin state
|
||||||
|
Loading…
Reference in New Issue
Block a user