An open API service indexing awesome lists of open source software.

https://github.com/austinvalle/hammy-bot

utility bot for google hangouts
https://github.com/austinvalle/hammy-bot

bot hangouts hangoutsbot javascript

Last synced: 6 months ago
JSON representation

utility bot for google hangouts

Awesome Lists containing this project

README

          

hammy-bot
[![Release](https://img.shields.io/github/release/moosebot/hammy-bot.svg)](https://github.com/moosebot/hammy-bot)
[![Build Status](https://img.shields.io/travis/moosebot/hammy-bot/master.svg)](https://travis-ci.org/moosebot/hammy-bot)
=========



*Logo design by [Gina Rasicci](http://www.ginarasicci.com/)*


Modular bot for google hangouts built w/ nodejs and [hangupsjs](https://github.com/yakyak/hangupsjs/) .

Primarily used to monitor group-chats, provide added context to links (tweets, images, animated gifs, etc.) and accept commands from users to perform various tasks.

## setting up hammy

* download hammy-bot from github
* set following environment variables to enable Twitter
* TWITTER_CONSUMER_KEY
* TWITTER_CONSUMER_SECRET
* TWITTER_ACCESS_TOKEN
* TWITTER_ACCESS_TOKEN_SECRET
* open cmd prompt and navigate to hammy-bot directory
* run "npm start"
* follow prompts on cmd prompt to enter authorization token
* see this [workaround](https://github.com/tdryer/hangups/issues/260#issuecomment-246578670) to generate a token

## what hammy can do

* Post GIFs from gfycat

![gfycat example](/examples/gyfcat.gif)

* Post direct url images/videos for JPG,PNG,JPEG,GIF,MP4 links

![direct url example](/examples/direct_urls.gif)

* Post GIFs from streamable urls

![streamable example](/examples/streamable.gif)

* Post twitter status, images, and gifs

![twitter example](/examples/twitter.png)

* Post GIFs from xboxdvr urls

![xbox dvr example](/examples/xboxdvr.gif)

* Post random GIFs provided by Giphy

![random giphy example](/examples/random_gifs.gif)

## APIs currently in use
* [Gfycat](https://gfycat.com/api)
* [Giphy](https://github.com/Giphy/GiphyAPI)
* [Twitter](https://dev.twitter.com/rest/public)
* [Streamable](https://streamable.com/documentation)
* [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) (Requires ffmpeg binaries installed)