Sends or generates a message mimicking your friends based on your Hangouts chat history.
- GMail or Google Apps account which can use Hangouts
- Python 3.6+
git clone https://github.com/ammgws/wynbot.git
cd wynbot
pip install -r requirements.txt
- Go to Google Takeout and export your Hangouts chat data.
- Go to Google APIs and generate secret client ID/password.
- Generate corpus for wynbot to use:
python build_db.py Hangouts.json
Usage: wynbot.py [OPTIONS] RECIPIENT
Login to Hangouts, send generated message and disconnect.
Options:
--config-path PATH Path to directory containing config file. Defaults
to $XDG_CONFIG_HOME/wynbot.
--cache-path PATH Path to directory to store logs and such. Defaults
to $XDG_CACHE_HOME/wynbot.
--no-log Disables logging.
-n, --num_chars INTEGER max character length for the generated message.
-s, --state_size INTEGER state size for Markov model.
--print-only Print message to stdout, not Hangouts.
--prefix TEXT String to prefix message with.
--help Show this message and exit.
Example:
python wynbot.py --print-only --prefix="[Robot] " "[email protected]"