Formatting
This commit is contained in:
parent
4eb40f1ab5
commit
ce6be5dc70
1 changed files with 6 additions and 2 deletions
8
main.py
8
main.py
|
@ -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)!")
|
||||||
|
|
Loading…
Reference in a new issue