https://github.com/bkopysc/messthechatter
CharacterAI chatbot integration with the Me$$enger app.
https://github.com/bkopysc/messthechatter
characterai chatbot python selenium-webdriver
Last synced: 5 months ago
JSON representation
CharacterAI chatbot integration with the Me$$enger app.
- Host: GitHub
- URL: https://github.com/bkopysc/messthechatter
- Owner: BKopysc
- Created: 2024-07-24T10:39:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-11T21:53:12.000Z (about 1 year ago)
- Last Synced: 2025-02-11T20:47:58.138Z (8 months ago)
- Topics: characterai, chatbot, python, selenium-webdriver
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# MessTheChatter
[](https://pypi.python.org/pypi/ansicolortags/)


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

## 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](##Configuration))
4. 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](####How-to-obtain-the-CharacterAI-token))
- 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](https://github.com/kramcat/CharacterAI) (unofficial API for CharacterAI)