Swap out some debug prints for just a conformation of sending

This commit is contained in:
Firepup Sixfifty 2024-06-04 17:23:56 -05:00
parent 586ef2cfc1
commit b9ac4faef0
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

12
main.py
View file

@ -96,20 +96,20 @@ if __name__ == "__main__":
while 1: while 1:
msg = input("[THREAD] Message (Raw text, not blocks)") msg = input("[THREAD] Message (Raw text, not blocks)")
try: try:
print( client.chat_postMessage(
client.chat_postMessage( channel=chan, text=msg, thread_ts=ts
channel=chan, text=msg, thread_ts=ts
)
) )
print("Message sent (to the thread)!")
except Exception as E: except Exception as E:
print(f"Exception: {E}") print(f"Exception: {E}")
except KeyboardInterrupt: except KeyboardInterrupt:
print() print()
if ts: if ts:
continue continue
msg = input("Message (Raw text, not blocks)") msg = input("[CHANNEL] Message (Raw text, not blocks)")
try: try:
print(client.chat_postMessage(channel=chan, text=msg)) client.chat_postMessage(channel=chan, text=msg)
print("Message sent (to the channel)!")
except Exception as E: except Exception as E:
print(f"Exception: {E}") print(f"Exception: {E}")
except KeyboardInterrupt: except KeyboardInterrupt: