Compare commits
3 commits
994d47a690
...
65717b9ad9
Author | SHA1 | Date | |
---|---|---|---|
65717b9ad9 | |||
8094d335de | |||
ae87df72c9 |
1 changed files with 12 additions and 3 deletions
15
main.py
15
main.py
|
@ -3,6 +3,7 @@ from slack_bolt import App
|
|||
from slack_bolt.adapter.socket_mode import SocketModeHandler
|
||||
from dotenv import load_dotenv
|
||||
import firepup650 as fp
|
||||
from traceback import format_exc
|
||||
|
||||
input = fp.replitInput
|
||||
|
||||
|
@ -117,7 +118,9 @@ if __name__ == "__main__":
|
|||
]
|
||||
ts = found["ts"]
|
||||
except Exception as E:
|
||||
print(f"[WARN] Exception: {E}")
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
break
|
||||
else:
|
||||
ts = input("TS ID")
|
||||
|
@ -135,7 +138,10 @@ if __name__ == "__main__":
|
|||
)
|
||||
print("[INFO] Message sent (to the thread)!")
|
||||
except Exception as E:
|
||||
print(f"[WARN] Exception: {E}")
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
if ts:
|
||||
|
@ -147,6 +153,9 @@ if __name__ == "__main__":
|
|||
client.chat_postMessage(channel=chan, text=msg)
|
||||
print("[INFO] Message sent (to the channel)!")
|
||||
except Exception as E:
|
||||
print(f"[WARN] Exception: {E}")
|
||||
print("[WARN] Exception:")
|
||||
for line in format_exc().split("\n")[:-1]:
|
||||
print(f"[WARN] {line}")
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue