fix tox complaints
This commit is contained in:
parent
9b70445c80
commit
b509b0ab77
|
@ -55,9 +55,9 @@ class RelayPlugin:
|
||||||
else:
|
else:
|
||||||
logging.debug("This is a system message in an outside group.")
|
logging.debug("This is a system message in an outside group.")
|
||||||
relay_group = self.get_relay_group(message.chat.id)
|
relay_group = self.get_relay_group(message.chat.id)
|
||||||
if 'image changed by' in message.text:
|
if "image changed by" in message.text:
|
||||||
relay_group.set_profile_image(message.chat.get_profile_image())
|
relay_group.set_profile_image(message.chat.get_profile_image())
|
||||||
if 'name changed from' in message.text:
|
if "name changed from" in message.text:
|
||||||
group_name = "[%s] %s" % (
|
group_name = "[%s] %s" % (
|
||||||
self.account.get_config("addr").split("@")[0],
|
self.account.get_config("addr").split("@")[0],
|
||||||
message.chat.get_name(),
|
message.chat.get_name(),
|
||||||
|
|
|
@ -182,9 +182,7 @@ def verify_crypto(ctx, dbdir: str, verbose: int):
|
||||||
setup_contact = ac.get_setup_contact_qr()
|
setup_contact = ac.get_setup_contact_qr()
|
||||||
qr = qrcode.QRCode()
|
qr = qrcode.QRCode()
|
||||||
qr.add_data(setup_contact)
|
qr.add_data(setup_contact)
|
||||||
print(
|
print("\nPlease scan this qr code with Delta Chat to verify the bot:\n\n")
|
||||||
"\nPlease scan this qr code with Delta Chat to verify the bot:\n\n"
|
|
||||||
)
|
|
||||||
qr.print_ascii(invert=True)
|
qr.print_ascii(invert=True)
|
||||||
print(
|
print(
|
||||||
"\nAlternatively, copy-paste this invite to your Delta Chat desktop client:",
|
"\nAlternatively, copy-paste this invite to your Delta Chat desktop client:",
|
||||||
|
|
|
@ -4,6 +4,8 @@ def test_help(cmd):
|
||||||
"""
|
"""
|
||||||
Usage: teams-bot [OPTIONS] COMMAND [ARGS]...
|
Usage: teams-bot [OPTIONS] COMMAND [ARGS]...
|
||||||
* -h, --help Show this message and exit.
|
* -h, --help Show this message and exit.
|
||||||
* init Configure bot; create crew; add user to crew by scanning a QR code.
|
* init Scan a QR code to create a crew and join it
|
||||||
|
* run Run the bot, so it relays messages from and to the outside
|
||||||
|
* verify-crypto Show a QR code to verify the encryption with the bot
|
||||||
""",
|
""",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue