send block gif for math questions

This commit is contained in:
mud mud 2023-05-09 13:38:32 +02:00
parent d548e00fb3
commit caaf419d6d
Signed by untrusted user: mud
GPG Key ID: D29C9385CC54F61C
2 changed files with 1 additions and 0 deletions

BIN
block.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

View File

@ -188,6 +188,7 @@ loop do
$mathproblem_operator = rand(2) == 1 ? "+" : "-"
# 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}`")
else
# activate coin state