Last active
June 3, 2025 16:20
-
-
Save bawanyadam/2f959560d6c5b6b659484186b3687788 to your computer and use it in GitHub Desktop.
Daily "mmm whatcha say" Bluesky Post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install the 'atproto' library from https://docs.bsky.app/docs/get-started | |
| # Python 3.8 minimum requirement | |
| from atproto import Client | |
| import random | |
| client = Client(base_url='https://bsky.social') | |
| client.login('user.bsky.social', 'app-password') | |
| # Generate a random number of 'm's between 3 and 20 | |
| m_count = random.randint(3, 20) | |
| # Generate a random number of 'y's between 1 and 8 | |
| y_count = random.randint(1, 8) | |
| # Build the message | |
| message = "m" * m_count + " whatcha sa" + "y" * y_count | |
| # Send the post | |
| post = client.send_post(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment