This commit is contained in:
Lera Elvoé 2022-10-28 01:15:20 +03:00
parent c6fc4cdf0e
commit 8014f90e2c
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -68,6 +68,9 @@ bot.message(content: 'GET COIN' ) do |event|
next if event.author.role? 'robot friend' next if event.author.role? 'robot friend'
# update score # update score
if coin_state_active if coin_state_active
if event.author.bot_account?
event.respond "Bots don't get coins!"
end
coin_state_active = false coin_state_active = false
if(rand(100) == 47) if(rand(100) == 47)
hyper_coin_amount = rand(100) hyper_coin_amount = rand(100)