NYX Industries Personal Computer
Version A1.001 Copyright NI Corp 1975
16384 Bytes free

Connected via ARPAnet,

I created this with help as it was an excercise in what can be done with python and it blew me away that I could write code to talk to other programs like bluesky!


    from atproto import Client
    from dotenv import load_dotenv
    import os
    load_dotenv('/home/nyx/bluesky-poster/.env')
    handle = os.getenv('BLUESKY_HANDLE')
    password = os.getenv('BLUESKY_PASSWORD')
    #print(handle)
    #print(password)
    #print(f"Handle: {handle}")
    #print(f"Password length: {len(password) if password else 'None'}")
    client = Client()
    client.login(handle, password)
    client.send_post('I just updated my blog! nyx85.neocities.org' )

        

You need to create a local .env file with your handle and password for this to work. You also need to get a password from bluesky to be able to get in. **DONT use your normal bluesky password!**