Swap out some debug prints for just a conformation of sending
This commit is contained in:
parent
586ef2cfc1
commit
b9ac4faef0
1 changed files with 6 additions and 6 deletions
8
main.py
8
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue