Skip to content

andyshilton/GifRocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GifRocket


Overview | How to use | Installation | Team | Copyright & License



Overview

GifRocket is a slash-command which sends your given phrases to Giphy and returns any according gif or sticker.



How to use

Gifs

GifRocket reacts on a slash-command. For example entering !gif test shows a gif relating to the word test.
Try to use !gif random as phrase and receive a random gif.

Sticker

GifRocket reacts on a slash-command. For example entering !sticker test shows a sticker relating to the word test.
Try to use !sticker random as phrase and receive a random sticker.



Installation

Download code

Download source using the button link at the top of this page.
Unzip Sources. Alternatively, clone this repo using your favorite git client.


Configure Rocket.Chat

Add user (optional)

This step is optional if you've already got a user which you want to use as post author you can skip this step.
Otherwise add a new user who is posting the updates to your channel or who ist texting the user which is supposed to be informed.

Configure outgoing Webhook in Rocket.Chat

In your Rocket.Chat instance go to administration panel an click on "Integrations". To add an integration with BitRocket click on "NEW INTEGRATION".
Next, choose "Outgoing WebHook".
Now, on the webhook config screen, set the following values:

Enabled

Set this value to true/yes

Name (optional)

Enter the desired name for the integration (e.g. "GifRocket").

Channel

Self-explaining option. Insert the desired channel which should be listened.

Trigger Words

Set the trigger words on which the command should be fired. You have to set !gif,!sticker in here. Every time you write !gif or !sticker, everything after that string will be pushed zu Giphy.

URLs

In this field you must enter https://api.giphy.com/v1/

Send as

In this field you should define the user who sends the found gif. This is the user you defined earlier.

Script active

This value mus be true

GifRocket Script

Now insert the complete code of the file GifRocket.js into this field.

Save changes

Now click on "SAVE CHANGES" and you're done.



Want to contribute?

If you have any ideas on how to make this script way better, feel free to contact us. We would love to add more features. Let's improve this work together!



Team

Manuel Bachl (m.bachl@finndrop.de)
Thies Schneider (t.schneider@finndrop.de)



Copyright & License

Finndrop Studios
Copyright (c) 2016 „Finndrop Studios

Licensed under the MIT license.

About

Giphy Integration for Rocket.Chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%