Skip to content

Commit

Permalink
style: format code with Autopep8, Black, isort and Yapf
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in d859474 according to the output
from Autopep8, Black, isort and Yapf.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Apr 14, 2024
1 parent d859474 commit 97ff3fe
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions utilitybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:]))
Expand Down

0 comments on commit 97ff3fe

Please sign in to comment.