A bot for Groupme that let's your group inject hilarious animated gif's from Giphy into your super serious khaki pants groupme chat.
The bot is easy to set up on Heroku. The bot itself uses the Fancy Groupme Bot Node module to do its business.
Your bot needs a few things, a name, a room to connect to and a Groupme Token (you need to create an application to get a token).
The Steps
-
Go ahead and set up a Heroku account.
-
git clone [email protected]:cmcavoy/fancy-giphy-bot.git
-
cd fancy-giphy-bot
-
heroku create
and make note of the url that Heroku creates. -
The bot expects a few enviroment variables to be set on Heroku, all of which you can do from the command line.
heroku config:set GIPHYTOKEN=dc6zaTOxFJmzC # this is the beta app token from [Giphy API](https://github.com/giphy/GiphyAPI). It may change in the future.
heroku config:set GROUP=[the room id you want the bot to connect to]
heroku config:set GROUPMETOKEN=[the groupme token you got when you registered an [application](https://dev.groupme.com/applications/new)]
heroku config:set URL=[the url that heroku created for your app]
-
Push the code to heroku
git push heroku master
-
Have fun! Giphybot should join your group. Any phrase that includes the single letter 'g' or the word 'giphybot' will ask the bot to search for something on Giphy.
giphybot fancy robots
will search forfancy robots
,fancy robots g
will also search forfancy robots
.
probably Wil Smith, but Fancy Giphybot just returns Gifs, it doesn't write symphonies....YET.