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

BeepBoop

  • 7 Devlogs
  • 7 Total hours

Stardance utilities in slack! Written in Golang :)

Ship #1

I built an alternative to #flavortown-feed for stardance!
This means that it tracks projects for new devlogs and sends them to slack.

I’d say it improves the original in a few ways, like proper support for markdown and displaying attachments.

It also has more features, like commands for listing a users projects, getting projects and their devlogs, and a golang library for scraping stardance.

This was a fun project :)

Try project → See source code →
Open comments for this post

56m 35s logged

Features and bug fixes!

  1. Added a “view full” button to the /project [id] command - show the same message as /watch-project [id], but I added a new function to my scraping library to get a single devlog
  2. Better error messages, e.g “UNIQUE constraint failed” now says “Project already tracked”
  3. Trim characters _*- from command inputs, to ignore markdown formatting (caused by copying formatted text)
  4. Deduplicate attachments - seems a stardance update caused attachments to appear multiple times in the DOM, fixed by using a map

Ideally these would have all been separate devlogs, but a lot of changes where less than the minimum 15minute devlog time

0
0
3
Open comments for this post

50m 2s logged

Feature: Attachments are shown in devlogs

Devlogs from /watch-project [id] now display the image attachments, and link to videos because slack doesn’t have video blocks

Moved videos outside the carousel because they don’t have thumbnails, and are now more compact

Also added a LICENSE and README


Commit

0
0
6
Open comments for this post

1h 4m 35s logged

Feature: /watch-project command

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


Commit

0
0
4
Open comments for this post

29m 24s logged

View project in slack

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.


Commit

0
0
5
Open comments for this post

2h 7m 20s logged

Feature: View a project

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


Commit

0
0
2
Open comments for this post

1h 19m 30s logged

Feature: List a users projects

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.


Commit

0
0
4
Open comments for this post

23m 59s logged

Beep?

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

0
0
8

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…