Compare commits

..

No commits in common. "dc32fb3dcc7a8cfb680ec27bc1a6f6105eb13338" and "0ffc771d09e480d1f2dac1e84abfc90d28ee795f" have entirely different histories.

View File

@ -63,7 +63,6 @@ end
bot.message(content: 'GET COIN' ) do |event| bot.message(content: 'GET COIN' ) do |event|
# update score # update score
if coin_state_active if coin_state_active
coin_state_active = false
if(rand(100) == 47) if(rand(100) == 47)
hyper_coin_amount = rand(100) hyper_coin_amount = rand(100)
coins = increment_coin(event.author.id, hyper_coin_amount) coins = increment_coin(event.author.id, hyper_coin_amount)
@ -72,6 +71,9 @@ bot.message(content: 'GET COIN' ) do |event|
coins = increment_coin(event.author.id) coins = increment_coin(event.author.id)
event.respond "Nice catch, #{event.author.display_name}! You have #{plural('coin', coins)} now!" event.respond "Nice catch, #{event.author.display_name}! You have #{plural('coin', coins)} now!"
end end
coin_state_active = false
else else
event.respond "No coins for you, #{event.author.display_name}!" event.respond "No coins for you, #{event.author.display_name}!"
end end