game.py 511 B

123456789101112131415161718192021
  1. from lib.db_log import DBLog
  2. from util import random_chars
  3. CURRENCY_NAME = "₭ollar"
  4. MRO_INTERVAL = 7 * 24 * 3600
  5. MRO_RUNNING_TIME = 7 * 24 * 3600
  6. CURRENCY_SYMBOL = "₭"
  7. MINIMUM_ORDER_AMOUNT = 1
  8. DEFAULT_ORDER_EXPIRY = 43200
  9. DB_NAME = 'orderer'
  10. COPYRIGHT_INFRINGEMENT_PROBABILITY = 0.05
  11. MIN_INTEREST_INTERVAL = 60 # seconds
  12. ROOT_URL = "/orderer.zip"
  13. logger = DBLog()
  14. OWNABLE_NAME_PATTERN = r'[A-Z-a-z0-9]{1,6}'
  15. BANK_NAME = 'bank'
  16. def random_ownable_name():
  17. return random_chars(6)