Fix formatting in command helps

This commit is contained in:
Tulir Asokan
2019-02-13 00:05:17 +02:00
parent f8e429f08a
commit 5c8f2034c3
4 changed files with 8 additions and 7 deletions
@@ -24,7 +24,8 @@ from mautrix_telegram.commands import command_handler, CommandEvent, SECTION_AUT
@command_handler(needs_auth=True,
help_section=SECTION_AUTH,
help_text="Change your Telegram username")
help_args="<_new username_>",
help_text="Change your Telegram username.")
async def username(evt: CommandEvent) -> Optional[Dict]:
if len(evt.args) == 0:
return await evt.reply("**Usage:** `$cmdprefix+sp username <new username>`")
+2 -2
View File
@@ -168,8 +168,8 @@ PEER_TYPE_CHAT = b"g"
@command_handler(help_section=SECTION_MISC,
help_args="<play ID>",
help_text="Play a Telegram game")
help_args="<_play ID_>",
help_text="Play a Telegram game.")
async def play(evt: CommandEvent) -> Optional[Dict]:
if len(evt.args) < 1:
return await evt.reply("**Usage:** `$cmdprefix+sp play <play ID>`")