BeepBoop
- 5 Devlogs
- 5 Total hours
Stardance utilities in slack! Written in Golang :)
Stardance utilities in slack! Written in Golang :)
I added a command to watch a project for new devlogs. Its a job that runs every minute (for now), scraping each tracked project for devlogs that haven’t been tracked yet.
btw I hate slack, they don’t support full markdown so formatting can be a bit weird
Before, projects in the /user-project command had a view button that took you to the page in stardance. Now, it sends a message in slack
The most annoying part of this was of course the slack API. I was trying to ack the response with a message, for whatever reason that did not work. Instead i sent a new message.
You can now view a project and its devlogs using the /project [id] command.
It shows all the attachment of a devlog, including videos - which kind of work, its just a link to the file.
The most annoying part was again the slack message format, I had to use packages to convert the HTML into markdown, and then convert the the markdown into a slack compatible markdown format. I also had to truncate the devlogs to 199 characters, trying to fix a cryptic error message.
Next I’ll add the ability to view devlogs, images and videos in full from slack, using modals
I added a command /user-projects [username]!
Most annoying part was figuring out Slacks message format. Scraping was by far the easiest part, thanks to Stardance’s CSS class format.
Started working on a Stardance scraping library in go.
Boop!
Setup my first slack bot with golang, added a slash command /beep
I will make a /track command to pull from stardance devlogs automatically next