Skip to content

Popinek/postTechBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PostTechBot

Welcome to PostTechBot! This is a Python script designed to automate interactions on the Post.tech platform using Selenium and the ChatGPT API for generating tweets and replies. If you find this script useful, please consider giving it a star.

Features

  • Automated Tweeting: PostTechBot can create and send tweets on your behalf using the ChatGPT API.

  • Automated Replies: It can also automatically reply to messages on the Post.tech platform using the ChatGPT API.

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/PostTechBot.git
  2. Install the required Python packages:

    pip install selenium
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
  4. Activate the virtual environment (skip this step if you didn't create a virtual environment):

    • On Windows:

      venv\Scripts\activate
    • On macOS and Linux:

      source venv/bin/activate
  5. Set up your environment variables by creating a .env file in the project directory with the following content:

    username=user1
    password=pass
    gpt=apikey

    Replace user1, pass, and apikey with your actual Post.tech username, password, and ChatGPT API key.

  6. Install the required Firefox WebDriver:

    • Download the latest GeckoDriver from here.
    • Add the GeckoDriver executable to your system's PATH.
  7. Configure your ChatGPT API credentials:

    • Obtain your API key from the OpenAI platform.

    • Put your API key to .env file

  8. Run the script:

    python main.py

    This will start the automation process.

Configuration

  • You can customize the tweet and reply messages by modifying the tweet_message and reply_message variables in the script or delete these and uncomment the commented ones to work with gpt, also set up your persona and prompt

Dependencies

License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy automating your interactions on Post.tech with PostTechBot, powered by the ChatGPT API! If you encounter any issues or have suggestions for improvements, please open an issue on this repository. Thank you for using PostTechBot! 🚀

About

Farm airdrop points on Post.Tech

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages