/MessTheChatter

CharacterAI chatbot integration with the Me$$enger app.

Primary LanguagePython

MessTheChatter

PyPI status
Google Chrome Python
CharacterAI chatbot integration with the Me$$enger app. Built with Python and Chrome Webdriver.

Features

  • Send messages to a specific chat from chatbot
  • Gather messages from a specific chat and resend them to chatbot
  • Queue mechanism

Results

image

How to use

  1. Create venv
    python -m venv venv

  2. Activate venv
    venv\Scripts\activate (Windows)
    source venv/bin/activate (Linux)

  3. Install requirements
    pip install -r requirements.txt

  4. Manually modify .env file (check the configuration section)

  5. Run the main script
    python main.py

Configuration

To configure the script check and modify the .env file.
Note: your Me$$enger credentials is stored only on your local machine

Me$$enger credentials

  • MESS_EMAIL - your email
  • MESS_PASS - your password
  • MESS_URL - URL of the me$$enger site
  • MESS_CHATNAME - name of the chat you want to interact with
  • MESS_SEND_MSG_TEXT - text of the send keyword in your language. Example: "Send"

CharacterAI credentials

  • CAI_CHARACTER_ID - ID of the character you want to use (you can get it from the URL on the character page)
  • CAI_TOKEN - your personal authentication token (check the token section)
  • CAI_EMAIL - your email

How to obtain the CharacterAI token

  1. Run the script
    python characterai_web/cai_get_token.py
  2. You will receive a link in the mail from CharacterAI. Copy this URL and paste it in the console.
  3. The token will appear in the console.
  4. Copy the token and paste it in the .env file.

Used libraries

  • Selenium
  • aiocai (unofficial API for CharacterAI)