Sha256: d5500a42c9117132019d8c5350f18e401f222211667346fffea3a5567e3f3bf2
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tipjar-0.1.16 | lib/bitbot/plugin/prize.rb |