tangled.org trending bluesky account

whoops forgot some stuff

.DS_Store

This is a binary file and will not be displayed.

+4
.dockerignore
··· 1 + target 2 + **/target 3 + **/.idea 4 + .idea
+1 -1
.env.template
··· 5 5 # New configuration for star counting window and threshold 6 6 # Timeframe in hours to look back when counting recent stars 7 7 TIMEFRAME=1 8 - # Threshold for the number of stars within the timeframe to trigger a log message 8 + # Threshold for the number of stars within the timeframe to trigger a post 9 9 STAR_THRESHOLD=1 10 10 11 11 # Timeframe in hours to gate posts after a threshold is met (default 24)
+8
Dockerfile
··· 1 + FROM rust:1.89.0-bookworm AS builder 2 + WORKDIR /app 3 + COPY ../ /app 4 + RUN cargo build --release 5 + # 6 + FROM rust:1.89-slim-bookworm AS api 7 + COPY --from=builder /app/target/release/bot /usr/local/bin/bot 8 + CMD ["bot"]
+4 -3
README.md
··· 1 - # Come back later 1 + # Stitch Counter 2 2 3 - It ain't much, but it's bandiad engineering. 3 + Listens for stared repos and post them to [@stitch.selfhosted.social](https://bsky.app/profile/stitch.selfhosted.social) 4 + if they meet the threshold and are "trending". 4 5 5 - ![](./assets/nothing.gif) 6 + ![](./assets/star_only.png)
+1 -1
bot/src/main.rs
··· 105 105 let bot_pds_url = std::env::var("BOT_PDS_URL").expect("BOT_PDS_URL must be set"); 106 106 107 107 log::info!( 108 - "Starting bot with username: {}\nTimeframe threshold: {}\nStar Threshold: {}\nPost Threshold: {}", 108 + "Starting bot with username: {} Timeframe threshold: {} Star Threshold: {} Post Threshold: {}", 109 109 bot_username, 110 110 timeframe_hours, 111 111 star_threshold,
+9
compose.yml
··· 1 + services: 2 + tangled_trending: 3 + build: . 4 + env_file: 5 + - .env 6 + volumes: 7 + - type: bind 8 + source: . 9 + target: /app/
+5
justfile
··· 1 + release: 2 + docker buildx build \ 3 + --platform linux/arm64,linux/amd64 \ 4 + --tag fatfingers23/stitch_counter:latest \ 5 + --push .