Exemple #1
0
import datetime
import time

import config
import utils

investment_duration_var = utils.investment_duration_string(config.investment_duration)

# This message will be sent if an account has been
# successfully created
create_org = """
*Account created!*

Thank you %USERNAME% for creating a bank account in r/MemeEconomy!

Your starting balance is **%BALANCE% MemeCoins**.
"""

def modify_create(username, balance):
    return create_org.\
        replace("%USERNAME%", str(username)).\
        replace("%BALANCE%", format(balance, ",d"))

# This message will be sent if a user tries to create an account but already
# has one.
create_exists_org = """
I love the enthusiasm, but you've already got an account!
"""

# This message will be sent when an investment
# was successful
import datetime
import time

import config
import utils

INVESTMENT_DURATION_VAR = utils.investment_duration_string(
    config.INVESTMENT_DURATION)

# This message will be sent if an account has been
# successfully created
CREATE_ORG = """
*Account created!*

Thank you %USERNAME% for creating a bank account in r/MemeEconomy!

Your starting balance is **%BALANCE% MemeCoins**.
"""


def modify_create(username, balance):
    return CREATE_ORG.\
        replace("%USERNAME%", str(username)).\
        replace("%BALANCE%", format(balance, ",d"))


# This message will be sent if a user tries to create an account but already
# has one.
CREATE_EXISTS_ORG = """
I love the enthusiasm, but you've already got an account!
"""