From 97ff3fe8b2d57720ab8496fa35e3c0e945b80592 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:51:39 +0000 Subject: [PATCH] style: format code with Autopep8, Black, isort and Yapf This commit fixes the style issues introduced in d859474 according to the output from Autopep8, Black, isort and Yapf. Details: None --- utilitybot.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/utilitybot.py b/utilitybot.py index 3091761..80dac14 100644 --- a/utilitybot.py +++ b/utilitybot.py @@ -23,12 +23,13 @@ bot = sechat.Bot() bot.login(sys.argv[1], sys.argv[2]) r = bot.joinRoom(1) - #t = bot.joinRoom(147676) - #priv = bot.joinRoom(147571) - #sb2 = bot.joinRoom(147516) + # t = bot.joinRoom(147676) + # priv = bot.joinRoom(147571) + # sb2 = bot.joinRoom(147516) baso = bot.joinRoom(146039) - #den = bot.joinRoom(148152) - #t4d = bot.joinRoom(148981) + + # den = bot.joinRoom(148152) + # t4d = bot.joinRoom(148981) def ai(text): global c, h, last_msg # skipcq: PYL-W0602 @@ -86,9 +87,10 @@ def msg(event): r.send("/fish") else: with open("optout.txt") as f: - if result.group(1) not in f.read().split('\n'): + if result.group(1) not in f.read().split("\n"): r.send( - f"@{result.group(1).replace(' ', '')} your fish is ready!") + f"@{result.group(1).replace(' ', '')} your fish is ready!" + ) elif event.content[:5] == "echo ": if event.user_id == 540406 or event.content[5:10] != "/fish": r.send(html.unescape(event.content[5:]))