Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilGianfri committed Nov 23, 2024
1 parent 4af5200 commit f82558b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
working-directory: src

- name: Publish win-x64
run: dotnet publish TwitterSky\TwitterSky.csproj --configuration Release -r win-x64 --no-restore --output ./win-x64
run: dotnet publish TwitterSky\TwitterSky.csproj --configuration Release -r win-x64 --no-restore --output ./win-x64 /p:Version=${{ steps.compute_tag.outputs.next_tag }}
working-directory: src

- name: Create release directory
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ Example:
TwitterSky.exe --archivePath "yourtweetarchive\data\tweets.js" --username "yourbskyusername.bsky.social" --password "yourapppassword" --twitterHandles "handle1,handle2" --minDate "2012-10-10"
```

# How to use
1. Download your Twitter archive from https://twitter.com/settings/your_twitter_data
2. Extract the archive
3. Run TwitterSky with the parameters above

# Prerequisites
You need to have dotnet 9.0 runtime installed. You can download it from https://dotnet.microsoft.com/download/dotnet/9.0

# Known issues
- I made this app for myself, I tried to include some useful filters but it may not work for everyone. Code might not be the prettiest.
- I only tested this with my own tweet archive. If you encounter any issues, open an issue or even better, submit a PR!
Expand Down
2 changes: 1 addition & 1 deletion src/TwitterSky/TweetImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public async Task ImportTweetAsync()
// https://docs.bsky.app/docs/advanced-guides/rate-limits
// Absolutely untested code, it won't consider if the user uses the account from other places while importing
// It will just wait 15 minutes if the limit is reached but I don't think it's enough
if (_postedTweets >= 1665)
if (_postedTweets >= 1650)
{
Console.WriteLine("Rate limit reached. Sleeping for 15 minutes...");
await Task.Delay(TimeSpan.FromMinutes(15));
Expand Down

0 comments on commit f82558b

Please sign in to comment.