JSPM

hangouts-auto-reply-bot

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q31264F
  • License MIT

A customisable bot that replies on hangouts based on the configuration.

Package Exports

  • hangouts-auto-reply-bot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hangouts-auto-reply-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hangouts-auto-reply-bot

npm version npm downloads

NPM

A customisable bot that replies on hangouts based on the configuration.

How to install?

You need to have Node.js installed on your system before you can use this package. Get it here: Node.js

Once you have Node.js and NPM setup, the installation is as simple as running a command.

Linux/Mac

sudo npm install -g hangouts-auto-reply-bot

Windows

Within a command prompt window with administrative privileges:

npm install -g hangouts-auto-reply-bot

How to use?

You can simply fire up the bot with:

hangouts-auto-reply-bot

How to configure?

hangouts-auto-reply-bot-configure add <pattern>

Examples:

$ hangouts-auto-reply-bot-configure add test
What would you like me to respond with for "test"? Something

This will configure the bot respond with Something whenever an incoming message contains the word test

$ hangouts-auto-reply-bot-configure add hi|hey
What would you like me to respond with for "hi|hey"? Hello

This will configure the bot respond with Hello whenever an incoming message contains the words hi or hey

$ hangouts-auto-reply-bot-configure add how,are,you|what,about,you
What would you like me to respond with for "how,are,you|what,about,you"? Fantastic, how about you?

This will configure the bot respond with Fantastic, how about you? whenever an incoming message contains all of the words how, are and you or what, about and you in any order.

You can use the following command to list the configured responses:

hangouts-auto-reply-bot-configure list

To clear the configurations, you can use the following command:

hangouts-auto-reply-bot-configure clear

If you prefer, you can edit the configuration file manually, which is located at ~/.hangouts-auto-reply-bot.json.

Note: You need to restart the bot after you make any change in the configuration.