This is a bot made to interface with Google Hangouts. It uses the
hangups library to connect to hangouts.
NOTE: This project requires
The following instructions will help you get started:
Clone the github repository to your computer:
git clone https://github.com/ovkulkarni/hangoutsbot.git
Install all requirements:
cd hangoutsbot/ pip install -r requirements.txt
Create needed directories:
mkdir private logs
Create database tables:
Get Bot's ID and set in
Modify any other relevant information in
settings/secret.py to your liking.
Run the bot:
NOTE: Make sure to run the bot before adding it to a conversation. This way, it can correctly populate the database with Users.
Accessing the python shell with context:
To set your user as an admin, enter a shell and do the following:
>>> user = User.get(first_name="<enter your name here>") >>> user.is_admin = True >>> user.save()