コード例 #1
0
def force_tax(author: Union[AccountId, str], server: Server):
    """Manually trigger taxation"""
    author = _get_account(author, server)
    _assert_authorized(author, None)
    server.force_tax(author)
コード例 #2
0
ファイル: commands.py プロジェクト: JuhaJGamer/taubot
def process_force_tax(author: AccountId, message: str, server: Server,
                      **kwargs):
    assert_authorized(author, server, Authorization.ADMIN)
    server.force_tax(author)
    return f"You managed to steal from those people you tax-loving bureaucrat"