You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 45m 4s logged

I made the modal that you use to configure your alerts. this code is complete spaghetti (dont read it please), for reasons ill get in to.

displaying the modal was easy, as was actually designing it.

the bot will validate your repo name and channel selection before continuing, which is annoying. the repo validation is simple, it just quickly tries to pull the atom feed to check if the repo exists.

the channel validation is harder somehow, it has its own nested try-except block, because the only methods of checking if the bot is present will raise an exception if it isnt. so i spent like an hour fighting with that.

in one of my attempts to solve this i actually had three nested try-except blocks (including the main one for the function), one of which was inside the exception handler for another. i hate the slack api

these images are just the various failures the bot can return if you dont input things properly, also one of just the modal itself

0
5

Comments 0

No comments yet. Be the first!