From 68e3e2020c79b1f9973a785c90b1ec4ee896a888 Mon Sep 17 00:00:00 2001 From: n Date: Sun, 2 Feb 2025 00:13:27 -0600 Subject: [PATCH] fix 329877432705476439 --- bot.py | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/bot.py b/bot.py index d2beea4..b1ce929 100644 --- a/bot.py +++ b/bot.py @@ -34,19 +34,16 @@ async def help_message(room, message): and match.command("help")): return if debugMode == False: - message = (f""" -Help + message = (f"""Help ============================ A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake. {PREFIX} help - show this message {PREFIX} get - fetch a image from the defined instance {PREFIX} source - send a link to the source code {PREFIX} version - show the bot version -{PREFIX} die - kills the bot (only admins can do this!) - """) +{PREFIX} die - kills the bot (only admins can do this!)""") else: - message = (f""" -Help + message = (f"""Help ============================ A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake. {PREFIX} help - show this message @@ -57,8 +54,7 @@ A work-in-progress Python rewrite of the original quotes bot, aiming for a mostl --- -NOTE: Debug mode is on. Output will be more verbose. - """) +NOTE: Debug mode is on. Output will be more verbose.""") await bot.api.send_text_message(room.room_id, message) @@ -98,26 +94,20 @@ async def make_choice(room, message): if debugMode == False: created, description, imageid, ocr, score = formatData(quoteData) - message1 = (f""" -Created: {created} + message1 = (f"""Created: {created} Description: {description} Image ID: {imageid} OCR (Tesseract): {ocr} -Rating: {score} - """) +Rating: {score}""") else: created, description, imageid, ocr, score = formatData(quoteData) - message1 = (f""" -Created: {created} + message1 = (f"""Created: {created} Description: {description} Image ID: {imageid} OCR (Tesseract): {ocr} -Rating: {score} - """) - message2 = (f""" -Command recived (DEBUG). -(We're supposed to fetch quote number {id} now.) - """) +Rating: {score}""") + message2 = (f"""Command recived (DEBUG). +(We're supposed to fetch quote number {id} now.)""") if debugMode == True: await bot.api.send_text_message(room.room_id, message2) @@ -134,10 +124,8 @@ async def help_message(room, message): and match.command("source")): return - message = (f""" -quotes-bot-python by Nyx Tutt (@n:everypizza.im) -https://git.everypizza.im/n/quotes-bot-python/ - """) + message = (f"""quotes-bot-python by Nyx Tutt (@n:everypizza.im) +https://git.everypizza.im/n/quotes-bot-python/""") await bot.api.send_text_message(room.room_id, message) @@ -148,9 +136,7 @@ async def help_message(room, message): and match.command("version")): return - message = (f""" -quotes-bot-python version {version} - """) + message = (f"""quotes-bot-python version {version}""") await bot.api.send_text_message(room.room_id, message)