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

View file

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