Git Product home page Git Product logo

pearl's Introduction

Pearl

Pearl is a framework for making Google Hangouts bots. It is structured as a set of plugins, which can respond to various events. For example, the hello plugin replies with a custom greeting whenever a user sends /pearl hello. Pearl only comes with a few sample plugins, but it's incredibly easy to make custom ones. Pearl is built on hangups.

Prerequisites

Pearl requires a Gmail account, which you must independently create. Once you've made an account, add it to conversations that you would like it to interact with.

In the pearl directory, create a new directory called private. Inside, create two files, auth.json and token.txt. Write the following to auth.json, but with your own credentials. If you have two-factor authentication enabled, include it in the secret field; otherwise, leave it as an empty string.

{
	"email": "[email protected]",
	"password": "pearl",
	"secret": "",
	"token": "private/token.txt"
}

Running

All it takes to get Pearl up and running is python pearl.py. The easiest way to permanently run a bot is to build and run a Docker instance from the given Dockerfile. On some servers, Google may block login requests that Pearl makes. In these situations, first run Pearl on your home computer; you should then see a session cookie stored in token.txt. With the session cookie, you will be able to connect to Hangouts on any server.

If the program throws an error when generating the token, manually create one from these instructions and place it in token.txt.

In a conversation with Pearl, try sending /pearl help. Pearl should respond with a set of available commands.

Customization

Generally speaking, pearl.py should not be modified. Instead, customize Pearl by making new plugins and adding them in config.json.

pearl's People

Contributors

defund avatar dynosaur72 avatar joshdabosh avatar kmh11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.