示例#1
0
def _full_balance(author: Union[AccountId, str], rest: str,
                  server: Server) -> str:
    bal = commands.balance(author, author, server)
    return f"Your un-rounded balance is {_mixed(bal)}"
示例#2
0
def _balance(author: Union[AccountId, str], rest: str, server: Server) -> str:
    bal = commands.balance(author, author, server) if len(
        rest.strip()) == 0 else commands.balance(author, rest, server)
    return f"{rest if len(rest.strip()) > 0 else author} 's balance is {_rounded(bal)}"