mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
add simple debug command for testing things out of git
This commit is contained in:
parent
f5bd08508a
commit
dba78b0f9f
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,10 @@ import commands
|
||||||
def cli():
|
def cli():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@click.command()
|
||||||
|
def debug():
|
||||||
|
pass
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
def get_registered_users():
|
def get_registered_users():
|
||||||
users = db.User.select()
|
users = db.User.select()
|
||||||
|
@ -36,6 +40,7 @@ def generate_bot_help():
|
||||||
if not 'admin' in c:
|
if not 'admin' in c:
|
||||||
click.echo(f'{cmd} - {commands.all_commands[cmd]["help"]}')
|
click.echo(f'{cmd} - {commands.all_commands[cmd]["help"]}')
|
||||||
|
|
||||||
|
cli.add_command(debug)
|
||||||
cli.add_command(get_registered_users)
|
cli.add_command(get_registered_users)
|
||||||
cli.add_command(get_address)
|
cli.add_command(get_address)
|
||||||
cli.add_command(generate_bot_help)
|
cli.add_command(generate_bot_help)
|
||||||
|
|
Loading…
Reference in a new issue