module Bitbot::Prize # create and initialise the random number generator prng = Random.new # create the rules for winning # No win # [1-865] 86.5% chance # Standard chat win of 10 + 1 - 500 satoshi max of 501 satoshi (0.00501mBTC) # [866 - 940] 7.5% chance def prize_win_std end # Minor prize win of 1000 satoshi max 1000 satoshi (0.01mBTC) # [941-990] 5% chance def prize_win_minor end # Major prize win of 10000 satoshi max of 10000 satoshi (0.1mBTC) # [991-1000] 1% chance def prize_win_major end # Check every 10 mins for bot balance, if less than 0.1mBTC then pause all payouts and print out message # this can also be run from plugin.rb on a set timer rather than duplicating here def prize_win_balance_check end end