Skip to content

Instantly share code, notes, and snippets.

@bawanyadam
Last active June 3, 2025 16:20
Show Gist options
  • Select an option

  • Save bawanyadam/2f959560d6c5b6b659484186b3687788 to your computer and use it in GitHub Desktop.

Select an option

Save bawanyadam/2f959560d6c5b6b659484186b3687788 to your computer and use it in GitHub Desktop.
Daily "mmm whatcha say" Bluesky Post
# 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