.DS_Store
.DS_Store
This is a binary file and will not be displayed.
+1
-1
.env.template
+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
+8
Dockerfile
+4
-3
README.md
+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
-

6
+

+1
-1
bot/src/main.rs
+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
+9
compose.yml