Formatting

This commit is contained in:
Firepup Sixfifty 2024-06-05 00:06:46 -05:00
parent 4eb40f1ab5
commit ce6be5dc70
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -94,7 +94,9 @@ if __name__ == "__main__":
) )
try: try:
while 1: while 1:
msg = input("[THREAD] Message (Raw text, not blocks)").replace("\\n", "\n") msg = input(
"[THREAD] Message (Raw text, not blocks)"
).replace("\\n", "\n")
try: try:
client.chat_postMessage( client.chat_postMessage(
channel=chan, text=msg, thread_ts=ts channel=chan, text=msg, thread_ts=ts
@ -106,7 +108,9 @@ if __name__ == "__main__":
print() print()
if ts: if ts:
continue continue
msg = input("[CHANNEL] Message (Raw text, not blocks)").replace("\\n", "\n") msg = input("[CHANNEL] Message (Raw text, not blocks)").replace(
"\\n", "\n"
)
try: try:
client.chat_postMessage(channel=chan, text=msg) client.chat_postMessage(channel=chan, text=msg)
print("Message sent (to the channel)!") print("Message sent (to the channel)!")