1
0
Fork 0

fix indents

This commit is contained in:
Nyx 2025-02-02 00:07:53 -06:00
parent 216c1bf4d7
commit b685fa6e18

66
bot.py
View file

@ -35,29 +35,29 @@ async def help_message(room, message):
return return
if debugMode == False: if debugMode == False:
message = (f""" message = (f"""
Help Help
============================ ============================
A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake. A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake.
{PREFIX} help - show this message {PREFIX} help - show this message
{PREFIX} get - fetch a image from the defined instance {PREFIX} get - fetch a image from the defined instance
{PREFIX} source - send a link to the source code {PREFIX} source - send a link to the source code
{PREFIX} version - show the bot version {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: else:
message = (f""" message = (f"""
Help Help
============================ ============================
A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake. A work-in-progress Python rewrite of the original quotes bot, aiming for a mostly complete remake.
{PREFIX} help - show this message {PREFIX} help - show this message
{PREFIX} get - fetch a image from the defined instance {PREFIX} get - fetch a image from the defined instance
{PREFIX} source - send a link to the source code {PREFIX} source - send a link to the source code
{PREFIX} version - show the bot version {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!)
--- ---
NOTE: Debug mode is on. Output will be more verbose. NOTE: Debug mode is on. Output will be more verbose.
""") """)
@ -90,24 +90,24 @@ async def make_choice(room, message):
if debugMode == False: if debugMode == False:
created, description, imageid, ocr, score = formatData(quoteData) created, description, imageid, ocr, score = formatData(quoteData)
message1 = (f""" message1 = (f"""
Created: {created} Created: {created}
Description: {description} Description: {description}
Image ID: {imageid} Image ID: {imageid}
OCR (Tesseract): {ocr} OCR (Tesseract): {ocr}
Rating: {score} Rating: {score}
""") """)
else: else:
created, description, imageid, ocr, score = formatData(quoteData) created, description, imageid, ocr, score = formatData(quoteData)
message1 = (f""" message1 = (f"""
Created: {created} Created: {created}
Description: {description} Description: {description}
Image ID: {imageid} Image ID: {imageid}
OCR (Tesseract): {ocr} OCR (Tesseract): {ocr}
Rating: {score} Rating: {score}
""") """)
message2 = (f""" message2 = (f"""
Command recived (DEBUG). Command recived (DEBUG).
(We're supposed to fetch quote number {id} now.) (We're supposed to fetch quote number {id} now.)
""") """)
if debugMode == True: if debugMode == True:
@ -126,8 +126,8 @@ async def help_message(room, message):
return return
message = (f""" message = (f"""
quotes-bot-python by Nyx Tutt (@n:everypizza.im) quotes-bot-python by Nyx Tutt (@n:everypizza.im)
https://git.everypizza.im/n/quotes-bot-python/ https://git.everypizza.im/n/quotes-bot-python/
""") """)
await bot.api.send_text_message(room.room_id, message) await bot.api.send_text_message(room.room_id, message)
@ -140,7 +140,7 @@ async def help_message(room, message):
return return
message = (f""" message = (f"""
quotes-bot-python version {version} quotes-bot-python version {version}
""") """)
await bot.api.send_text_message(room.room_id, message) await bot.api.send_text_message(room.room_id, message)