From 8534b3dbc4ecb24860c9ef7679e6cd79ceafc5ce Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 20 Jul 2020 23:44:31 -0700 Subject: [PATCH] add get-wallet-accounts --- tipbot/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tipbot/admin.py b/tipbot/admin.py index f282c31..3f47b9f 100644 --- a/tipbot/admin.py +++ b/tipbot/admin.py @@ -23,6 +23,11 @@ def get_address(account_index): address = wownero.Wallet().addresses(account=int(account_index))[0] click.echo(address) +@click.command() +def get_wallet_accounts(): + accounts = wownero.Wallet().accounts() + click.echo(accounts) + @click.command() @click.argument('dest_address') @click.argument('amount') @@ -40,6 +45,7 @@ cli.add_command(get_users) cli.add_command(get_address) cli.add_command(transfer) cli.add_command(generate_bot_help) +cli.add_command(get_wallet_accounts) if __name__ == '__main__': cli()